Example:
auto abs = filenameAbsolute(".");
assert(abs.length > 0);
assert(abs[0] == '/');string filenameAbsolute(string path) @trustedConverts a relative path to an absolute path.
Resolves the path relative to the current working directory.
path | Relative path to convert |
Example:
auto abs = filenameAbsolute(".");
assert(abs.length > 0);
assert(abs[0] == '/');