[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Sc-devel] File-extension
Hey List,
unsure where to put these (probably useful) extensions to file:
+ File {
*isRegularFile { arg pathName;
^("test -f %".format(pathName.escapeChar($ )).systemCmd == 0)
}
*isDirectory { arg pathName;
^("test -d %".format(pathName.escapeChar($ )).systemCmd == 0)
}
*isRTFD {arg pathName;
^((pathName.splitext.last == "rtfd") && {this.isDirectory(pathName)})
}
}
Any Idea? std-distro / common quark, etc?
regards
Till