- const char[1]sep;
-
String used to separate directory names in a path.
- const char[1]altsep;
-
Alternate version of sep[], used in Windows.
- const char[1]pathsep;
-
Path separator string.
- const char[2]linesep;
-
String used to separate lines.
- const char[1]curdir;
-
String representing the current directory.
- const char[2]pardir;
-
String representing the parent directory.
- char[] getExt(char[]fullname);
-
Get extension.
For example, "d:\path\foo.bat" returns "bat".
- char[] getBaseName(char[]fullname);
-
Get base name.
For example, "d:\path\foo.bat" returns "foo.bat".
- char[] getDirName(char[]fullname);
-
Get directory name.
For example, "d:\path\foo.bat" returns "d:\path".
- char[] getDrive(char[]fullname);
-
Get drive.
For example, "d:\path\foo.bat" returns "d:".
- char[] defaultExt(char[]filename,char[]ext);
-
If filename doesn't already have an extension,
append the extension ext and return the result.
- char[] addExt(char[]filename,char[]ext);
-
Strip any existing extension off of filename and add the new extension ext.
Return the result.
- int isabs(char[]path);
-
Return !=0 if path is absolute (i.e. it starts from the root directory).
- char[] join(char[]p1,char[]p2);
-
Join two path components p1 and p2 and return the result.
- int fncharmatch(dchar c1,dchar c2);
-
Match file name characters c1 and c2.
Case sensitivity depends on the operating system.
- int fnmatch(char[]filename,char[]pattern);
-
Match filename with pattern, using the following wildcards:
* | match 0 or more characters
|
? | match any character
|
[chars] | match any character that appears between the []
|
[!chars] | match any character that does not appear between the [! ]
|
Matching is case sensitive on a file system that is case sensitive.
Returns:
!=0 for match