Exception thrown for file I/O errors.
Dictates directory spanning policy for dirEntries (see below).
Appends buffer to file name.
Returns whether the given file attributes are for a directory.
Returns whether the given file attributes are for a file.
Returns whether the given file attributes are for a symbolic link.
Change directory to pathname. Equivalent to cd on Windows and POSIX.
Copy file from to file to. File timestamps are preserved. File attributes are preserved, if preserve equals Yes.preserveAttributes. On Windows only Yes.preserveAttributes (the default on Windows) is supported. If the target file exists, it is overwritten.
Returns an input range of DirEntry that lazily iterates a given directory, also provides two ways of foreach iteration. The iteration variable can be of type string if only the name is needed, or DirEntry if additional details are needed. The span mode dictates how the directory is traversed. The name of each iterated directory entry contains the absolute or relative path (depending on _pathname).
Determine whether the given file (or directory) exists.
Returns the attributes of the given file.
Returns the available disk space based on a given path. On Windows, path must be a directory; on POSIX systems, it can be a file or directory.
If the given file is a symbolic link, then this returns the attributes of the symbolic link itself rather than file that it points to. If the given file is not a symbolic link, then this function returns the same result as getAttributes.
Get size of file name in bytes.
Get the access and modified times of file or folder name.
This function is Windows-Only.
Get the current working directory.
Make a new directory pathname.
Make directory and all parent directories as needed.
Read entire contents of file name and returns it as an untyped array. If the file size is larger than upTo, only upTo bytes are read.
This function is POSIX-Only.
Reads and validates (using std.utf.validate) a text file. S can be an array of any character type. However, no width or endian conversions are performed. So, if the width or endianness of the characters in the given file differ from the width or endianness of the element type of S, then validation will fail.
Delete file name.
Rename file from to to, moving it between directories if required. If the target file exists, it is overwritten.
Remove directory pathname.
Remove directory and all of its content and subdirectories, recursively.
Set the attributes of the given file.
Set access/modified times of file or folder name.
Reads a file line by line and parses the line into a single value or a std.typecons.Tuple of values depending on the length of Types. The lines are parsed using the specified format string. The format string is passed to std._format.formattedRead, and therefore must conform to the format string specification outlined in std._format.
This function is POSIX-Only.
Returns the path to a directory for temporary files. On POSIX platforms, it searches through the following list of directories and returns the first one which is found to exist:
Returns the full path of the current executable.
This function is POSIX-Only.
Returns the time that the given file was last modified.
Returns the time that the given file was last modified. If the file does not exist, returns returnIfMissing.
This function is POSIX-Only.
This function is POSIX-Only.
Write buffer to file name.
Returns whether the given file is a directory.
Returns whether the given file (or directory) is a file.
Returns whether the given file is a symbolic link.
Info on a file, similar to what you'd get from stat on a POSIX system.
Defaults to Yes.preserveAttributes on Windows, and the opposite on all other platforms.
Utilities for manipulating files and scanning directories. Functions in this module handle files as a unit, e.g., read or write one file at a time. For opening files and manipulating them via handles refer to module std.stdio.