Header menu logo TDesu.FSharp

File Module

Functions and values

Function or value Description

File.delete filePath

Full Usage: File.delete filePath

Parameters:
    filePath : string - The path of the file to delete.

Returns: Result<unit, exn>

Deletes a file, returning Ok(()) on success or Error(exn) on failure.

filePath : string

The path of the file to delete.

Returns: Result<unit, exn>

File.deleteIgnore

Full Usage: File.deleteIgnore

Returns: string -> unit

Deletes a file, ignoring the result.

Returns: string -> unit

File.notExists path

Full Usage: File.notExists path

Parameters:
    path : string

Returns: bool
Modifiers: inline

Returns true if the file does not exist at the given path. The file path to check.

path : string
Returns: bool

Type something to start searching.