FAKE - F# Make - A DSL for build tasks and more FAKE
6.1.3

Lookig for older versions of the documentation, pre FAKE v6? See 

v5.fake.build

FileSystemInfo Module

Contains tasks to interact with FileSystemInfo

Functions and values

Function or value Description

FileSystemInfo.ofPath path

Full Usage: FileSystemInfo.ofPath path

Parameters:
    path : string - The path to create FileSystemInfo from

Returns: FileSystemInfo
Modifiers: inline

Creates a FileInfo or a DirectoryInfo for the given path

path : string

The path to create FileSystemInfo from

Returns: FileSystemInfo

FileSystemInfo.setReadOnly readOnly items

Full Usage: FileSystemInfo.setReadOnly readOnly items

Parameters:
    readOnly : bool - The readonly flag
    items : seq<string> - The list of files to set readonly flag on

Sets all given files or directories readonly.

readOnly : bool

The readonly flag

items : seq<string>

The list of files to set readonly flag on

Active patterns

Active pattern Description

FileSystemInfo.(|File|Directory|) fileSysInfo

Full Usage: FileSystemInfo.(|File|Directory|) fileSysInfo

Parameters:
Returns: Choice<FileInfo, (DirectoryInfo * IEnumerable<FileSystemInfo>)>

Active pattern which discriminates between files and directories.

fileSysInfo : FileSystemInfo

The FileSystemInfo to check

Returns: Choice<FileInfo, (DirectoryInfo * IEnumerable<FileSystemInfo>)>