Extract the dirname from the file path.
Example:
var path = new Path ("/tmp/file.txt");
assert (path.dirname ("/tmp/file.txt") == "/tmp");
| path |
file path to be checked. |
|
string of dirname. If path is empty, return "". |