module volt.util.path
Code Map
module volt.util.path;
//! Helper class to manage temporary files.
class TempfileManager
{
public:
//! Uses getTemporarySubdirectoryName to get the system temporary
//! directory.
this() { }
//! Creates a temporary file name with the given ending.
fn getTempFile(ending: string) string { }
//! Remove all tempfiles tracked by this manager.
fn removeTempfiles() { }
protected:
mSubdir: string;
mTemporaryFiles: string[];
}
//! Does the same as unix's "mkdir -p" command.
fn mkdirP(name: string) { }
//! Turns a qualified module name into a list of possible file paths.
fn genPossibleFilenames(dir: string, names: string[], suffix: string) string[] { }
//! Get the temporary subdirectory name for this run of the compiler.
fn getTemporarySubdirectoryName() string { }
fn mkdirP(name: string)
Does the same as unix's "mkdir -p" command.
fn genPossibleFilenames(dir: string, names: string[], suffix: string) string[]
Turns a qualified module name into a list of possible file paths.
fn getTemporarySubdirectoryName() string
Get the temporary subdirectory name for this run of the compiler.
class TempfileManager
Helper class to manage temporary files.
this()
fn getTempFile(ending: string) string
Creates a temporary file name with the given ending.
The file will be located in the system temporary directory as specified by getTemporarySubdirectoryName.
Parameters
ending |
The file ending for the temporary file. |
Side-Effects
-
Adds return to mTemporaryFiles.
fn removeTempfiles()
Remove all tempfiles tracked by this manager.
Side-Effects
-
Sets mTemporaryFiles to null.