Copyright:
License:
Version:
1 2 | if (exists ("some/file/path")) ... |
1 2 3 4 | import Path = tango.io.Path; if (Path.exists ("some/file/path")) ... |
1 2 3 4 5 | auto p = Path.parse ("some/file/path"); auto path = p.path; auto name = p.name; auto suffix = p.suffix; ... |
Note:
Note:
Note:
Note:
Note:
Note:
Note:
Since:
1 | remove (collate (".", "*.d", true)); |
Note:
Since:
Throws:
Throws:
1 2 3 4 | char[] path char[] name ulong bytes bool folder |
Note:
Since:
Note:
Note:
Note:
* | Matches 0 or more instances of any character. |
? | Matches exactly one instances of any character. |
[chars] | Matches one instance of any character that appears between the brackets. |
[!chars] | Matches one instance of any character that does not appear between the brackets after the exclamation mark. |
Returns:
Throws:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | version (Win32) { patternMatch("foo.bar", "*"); // => true patternMatch(r"foo/foo\bar", "f*b*r"); // => true patternMatch("foo.bar", "f?bar"); // => false patternMatch("Goo.bar", "[fg]???bar"); // => true patternMatch(r"d:\foo\bar", "d*foo?bar"); // => true } version (Posix) { patternMatch("Go*.bar", "[fg]???bar"); // => false patternMatch("/foo*home/bar", "?foo*bar"); // => true patternMatch("foobar", "foo?bar"); // => true } |
1 | normalize("/home/foo/./bar/../../john/doe"); // => "/home/john/doe" |
Note: