Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

File System functions

(Locked) Moderators: sean kris larsivi

Posted: 03/30/08 20:42:50 Modified: 03/30/08 20:48:11

Tango now has an alternative to FilePath for pedestrian access to the file system:

import tango.io.Path;

if (exists ("my file path"))
    ...

FilePath can be more efficient in some cases, but the Path module may be more convenient for many. We encourage the use of discrete namespaces for this module and others like it, as in the following example:

import Path = tango.io.Path;

if (Path.exists ("my file path"))
    ...

There are no responses to display.