FileManager

Undocumented in source.

Constructors

this
this()

Members

Functions

add
const(ubyte)[] add(FileName filename, const(ubyte)[] buffer)

Adds the contents of a file to the table.

getLines
const(char)[][] getLines(FileName file)

Looks up the given filename from the internal file buffer table, and returns the lines within the file. If the file does not already exist within the table, it will be read from the filesystem. If it has been read before,

lookForSourceFile
const(char)[] lookForSourceFile(char[] filename, char*[] path)

Look for the source file if it's different from filename. Look for .di, .d, directory, and along global.path. Does not open the file.

lookup
const(ubyte)[] lookup(FileName filename)

Looks up the given filename from the internal file buffer table. If the file does not already exist within the table, it will be read from the filesystem. If it has been read before,

Meta