Copy a file, or replace an existing file's contents with another file's, atomically.
Create a file, or replace an existing file's contents atomically. Note: Consider using atomic!syncWrite or atomic!syncUpdate instead.
Returns true if the target file doesn't exist, or any of the sources are newer than the target.
Wrap an operation which creates a file or directory, so that it is created safely and, for files, atomically (by performing the underlying operation to a temporary location, then renaming the completed file/directory to the actual target location). targetName specifies the name of the parameter containing the target file/directory.
Wrap an operation so that it is skipped entirely if the target already exists. Implies atomic.
Link a directory. Uses symlinks on POSIX, and directory junctions on Windows.
Make sure that the path exists (and create directories as necessary).
Enumerate all hard links to the specified file.
Shell-like expansion of ?, * and ** in path components
Shell-like expansion of ?, * and ** in path components
Forcibly remove a file or directory. If atomic is true, the entire directory is deleted "atomically" (it is first moved/renamed to another location). On Windows, this will move the file/directory out of the way, if it is in use and cannot be deleted (but can be renamed).
Return a file's unique ID.
Using UNC paths bypasses path length limitation when using Windows wide APIs.
Try to rename; copy/delete if rename fails
Returns true if the target file doesn't exist, or source is newer than the target.
Uses UNC paths to open a file. Requires https://github.com/D-Programming-Language/phobos/pull/1888
Two-argument buildPath with reversed arguments. Useful for UFCS chaining.
Change the current directory to the given directory. Does nothing if dir is null. Return a scope guard which, upon destruction, restores the previous directory. Asserts that only one thread has changed the process's current directory at any time.
Like std.file.readText for non-UTF8
Read a File (which might be a stream) into an array
Create an empty directory, deleting all its contents if it already exists.
If fn is a directory, delete it recursively. Otherwise, delete the file fn.
Atomically save data to a file (if the file doesn't exist, or its contents differs).
Write data to a file, and ensure it gets written to disk before this function returns. Consider using as atomic!syncWrite. See also: syncUpdate
If target exists, update its modification time; otherwise create it as an empty file.
Start a thread which writes data to f asynchronously.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
File stuff