parentOf static method
Returns the parent directory of the path
.
Example: dirname('abc/def.txt') == 'abc/'
deprecated: Use dirname() from package path
Implementation
@deprecated
static String parentOf(String path) {
final ix = path.lastIndexOf(sep);
final rc = ix < 0 ? '' : path.substring(0, ix + 1);
return rc;
}