Lookig for older versions of the documentation, pre FAKE v6? See
v5.fake.build
Contains helpers which allow to interact with the directory in file system.
Directory.create
string -> unit
Creates a directory if it does not exist.
Directory.delete path
string
Deletes a directory if it exists (including all contained elements).
The path to delete
Directory.ensure dir
Checks if the given directory exists. If not then this functions creates the directory.
The directory to check
Directory.findFirstMatchingFile pattern dir
Gets the first file in the directory matching the search pattern or throws an error if nothing was found.
The glob pattern to use in matching
Directory.tryFindFirstMatchingFile pattern dir
string option
Gets the first file in the directory matching the search pattern as an option value.