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

FileSystemInfo

Functions and values

Function or valueDescription
FileSystemInfo.ofPath(path)
Signature: path:string -> FileSystemInfo

Creates a FileInfo or a DirectoryInfo for the given path

FileSystemInfo.setReadOnly(...)
Signature: readOnly:bool -> items:seq<string> -> unit

Sets all given files or directories readonly.

Active patterns

Active patternDescription
FileSystemInfo.( |File|Directory| )(...)
Signature: fileSysInfo:FileSystemInfo -> Choice<FileInfo,(DirectoryInfo * IEnumerable<FileSystemInfo>)>

Active pattern which discriminates between files and directories.