Header menu logo fantomas

FileSystemUtils Module

Filesystem helpers

Functions and values

Function or value Description

checkPathForIllegalChars

Full Usage: checkPathForIllegalChars

Returns: string -> unit
Returns: string -> unit

checkSuffix path suffix

Full Usage: checkSuffix path suffix

Parameters:
    path : string
    suffix : string

Returns: bool

checkSuffix f s returns True if file name "f" ends in suffix "s", e.g. checkSuffix "abc.fs" ".fs" returns true. Disregards casing, e.g. checkSuffix "abc.Fs" ".fs" returns true.

path : string
suffix : string
Returns: bool

chopExtension path

Full Usage: chopExtension path

Parameters:
    path : string

Returns: string

chopExtension f removes the extension from the given file name. Raises ArgumentException if no extension is present.

path : string
Returns: string

fileNameOfPath path

Full Usage: fileNameOfPath path

Parameters:
    path : string

Returns: string

Get the file name of the given path.

path : string
Returns: string

fileNameWithoutExtension path

Full Usage: fileNameWithoutExtension path

Parameters:
    path : string

Returns: string
path : string
Returns: string

fileNameWithoutExtensionWithValidate validate path

Full Usage: fileNameWithoutExtensionWithValidate validate path

Parameters:
    validate : bool
    path : string

Returns: string

Get the file name without extension of the given path.

validate : bool
path : string
Returns: string

hasExtension path

Full Usage: hasExtension path

Parameters:
    path : string

Returns: bool

Return True if the path has a "." extension.

path : string
Returns: bool

isDll fileName

Full Usage: isDll fileName

Parameters:
    fileName : string

Returns: bool

Checks whether file is dll (ends in .dll)

fileName : string
Returns: bool

trimQuotes path

Full Usage: trimQuotes path

Parameters:
    path : string

Returns: string

Trim the quotes and spaces from either end of a string

path : string
Returns: string

Type something to start searching.