FilePath

A class which stores default resource paths, and handles path manipulation.

Constructors

this
this(string path)

Create an instance based on a given file path.

Destructor

~this
~this()

Shuts down the File if it was instantiated.

Members

Enums

Resources
enum Resources

Paths to the different resource files.

Functions

getContents
string getContents()
Undocumented in source. Be warned that the author may not have intended to support it.
toFile
File* toFile(string mode)

Converts to a std.stdio.File

Manifest constants

ResourceHome
enum ResourceHome;

The path to the resources home folder.

Properties

baseFileName
string baseFileName [@property getter]

The name of the file without its extension.

directory
string directory [@property getter]

The path to the directory containing the file.

extension
string extension [@property getter]

The extensino of the file.

fileName
string fileName [@property getter]

The name of the file with its extension.

fullPath
string fullPath [@property getter]

The full path to the file.

relativePath
string relativePath [@property getter]

The relative path from the executable to the file.

Static functions

scanDirectory
FilePath[] scanDirectory(string path, string pattern)

Get all files in a given directory.

Meta