Note: This is the migration API reference for FAKE 5. The new (modularized) API documentation can be found
here.
If the API is already migrated you can check here if exists in a module.
More information regarding the migration can be found here
Directory
Functions and values
Function or value | Description |
Directory.create
Signature: string -> unit
|
Creates a directory if it does not exist. |
Directory.delete(path)
Signature: path:string -> unit
|
Deletes a directory if it exists (including all contained elements). |
Directory.ensure(dir)
Signature: dir:string -> unit
|
Checks if the given directory exists. If not then this functions creates the directory. |
Directory.findFirstMatchingFile(...)
Signature: pattern:string -> dir:string -> string
|
Gets the first file in the directory matching the search pattern or throws an error if nothing was found. |
Directory.tryFindFirstMatchingFile(...)
Signature: pattern:string -> dir:string -> string option
|
Gets the first file in the directory matching the search pattern as an option value. |