Example:
import std.file : getcwd;
auto cwd = getcwd();
auto rel = filenameRelative(cwd);
assert(rel == ".");string filenameRelative(string path) @trustedConverts an absolute path to a relative path.
Creates a path relative to the current working directory.
path | Absolute path to convert |
Example:
import std.file : getcwd;
auto cwd = getcwd();
auto rel = filenameRelative(cwd);
assert(rel == ".");