tango.io.FileSystem

License:

BSD style: see license.txt

Version:

Mar 2004: Initial release

Version:

Feb 2007: Now using mutating paths

Author:

Kris, Chris Sauls (Win95 file support)
struct FileSystem #
Models an OS-specific file-system. Included here are methods to manipulate the current working directory, and to convert a path to its absolute form.
FilePath toAbsolute(FilePath target, char[] prefix = null) [static] #
Convert the provided path to an absolute path, using the current working directory where prefix is not provided. If the given path is already an absolute path, return it intact.
Returns the provided path, adjusted as necessary
char[] toAbsolute(char[] path, char[] prefix = null) [static] #
Convert the provided path to an absolute path, using the current working directory where prefix is not provided. If the given path is already an absolute path, return it intact.
Returns the provided path, adjusted as necessary
bool equals(char[] path1, char[] path2, char[] prefix = null) [static] #
Compare to paths for absolute equality. The given prefix is prepended to the paths where they are not already in absolute format (start with a '/'). Where prefix is not provided, the current working directory will be used
Returns true if the paths are equivalent, false otherwise
void exception(char[] msg) [private, static] #
void setDirectory(char[] path) [static] #
Set the current working directory
char[] getDirectory() [static] #
Return the current working directory
char[][] roots() [static] #
List the set of root devices (C:, D: etc)