[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Sc-devel] PathName:parent
Hello all, a bit of time ago, Dan and I had a short exchange of emails
at the user's list; We both saw handy the inclusion of a parent method
for PathName; From that conversation, Dan suggested something like
this:
+ PathName {
// Dan
parentPath {
var ci = this.colonIndices;
^if((fullPath.last == $/) && (ci.size > 1), {
fullPath.copyRange(0, ci[ci.size - 2]);
}, {
fullPath.copyRange(0, this.lastColonIndex)
});
}
}
could we add this or something that supplies the same functionality to
the object class?
thanks,
x