auto p = parse ("/foo/bar/file.ext".dup); assert (p.equals("/foo/bar/file.ext")); assert (p.folder == "/foo/bar/"); assert (p.path == "/foo/bar/"); assert (p.file == "file.ext"); assert (p.name == "file"); assert (p.suffix == ".ext"); assert (p.ext == "ext"); assert (p.isChild == true); assert (p.isEmpty == false); assert (p.isAbsolute == true);
Parse a path into its constituent components.
Note that the provided path is sliced, not duplicated.