Use to cache arbitrary content associated with this instance. Use for smallish objects that are expensive to compute.
Add a file preserving permissions
Add an empty directory to the project. Should be preserved through all transformations, although may not be accessible in some implementations.
path to directory relative to root of project
Add the given file to the project. Path can be nested. Content is a literal string.
path to file relative to root of project
The content to be placed in the new file
Recursively delete a directory and all its contents. Path can be nested. Errors when deleting the directory do not result in a rejected Promise being returned.
path to directory relative to root of project
Delete the given file from the project. Path can be nested. Errors when deleting the file do not result in a rejected Promise being returned.
path to file relative to root of project
Attempt to find a regular file at path. This method will return a rejected Promise if the file does not exist or is not a regular file. You may well want getFile, which returns a Promise of the file or undefined.
path to file relative to root of project
Attempt to find a regular file at path. Never throws an exception, returns undefined if file does not exist or is not a regular file.
path to file relative to root of project
Get files matching these patterns glob patterns.
Does a directory exist at this path? It will return false if directory does not exist or if file at path is not a directory.
path to directory relative to root of project
Does a regular file exist at this path? It will return false for non-existent files, directories, block devices, FIFOs, sockets, etc.
path to file relative to root of project
Make a file executable. Other permissions are unchanged.
path to file relative to root of project
Move the file. Do not error if it's not found.
Return a node stream of the files in the project meeting the given path criteria. Uses default exclusions in the glob path.
glob patterns per micromatch
Stream file with full control over globs. At least one glob must be provided. No default exclusions will be used.
glob patterns per micromatch
for glob handling
The total number of files in this project or directory
totalFileCount
Generated using TypeDoc
Asynchronous Project operations, returning promises or node streams.