nxt.file

FileExtensions to std.file.

Members

Functions

findExecutable
FilePath findExecutable(FileName a, const(char)[] pathVariableName)

Find path for a (or FilePath.init if not found) in pathVariableName. TODO: Add caching of result and detect changes via inotify.

findFileInPath
FilePath findFileInPath(FileName a, const(char)[] pathVariableName)

Find path for a (or FilePath.init if not found) in pathVariableName. TODO: Add caching of result and detect changes via inotify.

homeDir
DirPath homeDir()

Get path to home directory.

matchFirst
typeof(FileName.str) matchFirst(FileName input, Node node)
Undocumented in source. Be warned that the author may not have intended to support it.
rawReadZ
immutable(void)[] rawReadZ(FilePath path)
immutable(void)[] rawReadZ(File file)

Read file path into raw array with one extra terminating zero byte.

tempDir
DirPath tempDir()

Get path to default temporary directory.

Static functions

fileExtension
Node fileExtension(string s)

Get pattern that matches a file name ending with '.'~s.

Structs

DataFormat
struct DataFormat

(Data) Format of file contents.

FileExtension
struct FileExtension

Extension of filename. See: https://en.wikipedia.org/wiki/Filename_extension

FileType
struct FileType

Type of file.

Meta