- Queries
- All Atoms
- Search
- Advanced Search
Diviner All Atoms
All Atoms
All Atoms
- Create a new log entry, which will be written later. The format string should use "%x"-style placeholders to represent data which will be added later:
- Method
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- The `locate` command is deprecated as of Mercurial 3.2, to be replaced with `files` command, which supports most of the same arguments. This determines whether the new `files` command should be used instead of the `locate` command.
- Method
- Method
- Simple wrapper class for common filesystem tasks like reading and writing files. When things go wrong, this class throws detailed exceptions with good information about what didn't work.
- Class
- Assert that a file or directory exists and is readable.
- Method
- Assert that a file or directory exists and is writable.
- Method
- Assert that a path represents a directory, strictly (i.e., not a file).
- Method
- Assert that a path represents a file, strictly (i.e., not a directory).
- Method
- Assert that nothing exists at a specified location.
- Method
- Assert that something (e.g., a file, directory, or symlink) exists at a specified location.
- Method
- Method
- Determine if two paths are equivalent by resolving symlinks. This is different from resolving both paths and comparing them because resolvePath() only resolves symlinks in parent directories, not the path itself.
- Method
- Locates the full path that an executable binary (like `git` or `svn`) is at the configured `$PATH`.
- Method
- Determine if an executable binary (like `git` or `svn`) exists within the configured `$PATH`.
- Method
- Convert a canonical path to its most human-readable format. It is guaranteed that you can use resolvePath() to restore a path to its canonical format.
- Method
- Test whether a path is descendant from some root path after resolving all symlinks and removing artifacts. Both paths must exists for the relation to obtain. A path is always a descendant of itself as long as it exists.
- Method
- Canonicalize a path by resolving it relative to some directory (by default PWD), following parent symlinks and removing artifacts. If the path is itself a symlink it is left unresolved.
- Method
- Checks if a path is specified as an absolute path.
- Method
- Return all directories between a path and the specified root directory (defaulting to "/"). Iterating over them walks from the path to the root.
- Method
- List files in a directory.
- Method
- Create a temporary directory and return the path to it. You are responsible for removing it (e.g., with Filesystem::remove()) when you are done with it.
- Method
- Create a directory in a manner similar to mkdir(), but throw detailed exceptions on failure.
- Method
- Identify the MIME type of a file. This returns only the MIME type (like text/plain), not the encoding (like charset=utf-8).
- Method
- Generate a random integer value in a given range.
- Method
- Read random alphanumeric characters from /dev/urandom or equivalent. This method operates like @{method:readRandomBytes} but produces alphanumeric output (a-z, 0-9) so it's appropriate for use in URIs and other contexts where it needs to be human readable.
- Method
- Read random bytes from /dev/urandom or equivalent. See also @{method:readRandomCharacters}.
- Method
- Get the last modified time of a file
- Method
- Change the permissions of a file or directory.
- Method
- Internal. Recursively remove a file or an entire directory. Implements the core function of @{method:remove} in a way that works on Windows.
- Method
- Rename a file or directory.
- Method
- Remove a file or directory.
- Method
- Copy a file, preserving file attributes (if relevant for the OS).
- Method
- Append to a file without having to deal with file handles, with detailed exceptions on failure.
- Method
- Write data to unique file, without overwriting existing files. This is useful if you want to write a ".bak" file or something similar, but want to make sure you don't overwrite something already on disk.
- Method
- Write a file in a manner similar to `file_put_contents()`, but only touch the file if the contents are different, and throw detailed exceptions on failure.
- Method
- Write a file in a manner similar to file_put_contents(), but throw detailed exceptions on failure. If the file already exists, it will be overwritten.
- Method
- Make assertions about the state of path in preparation for writeFile() and writeFileIfChanged().
- Method
- Read a file in a manner similar to file_get_contents(), but throw detailed exceptions on failure.
- Method
- Method
- Method
- Method
- Method
- Method
- Class
- Method
- Method
- Method
- Method
- Method
- Method