Header menu logo F# Compiler Guide

IFileSystem Type

Represents a shim for the file system

Instance members

Instance member Description

this.AssemblyLoader

Full Usage: this.AssemblyLoader

Returns: IAssemblyLoader
Modifiers: abstract

this.ChangeExtensionShim

Full Usage: this.ChangeExtensionShim

Parameters:
    path : string
    extension : string

Returns: string
Modifiers: abstract

A shim over Path.ChangeExtension

path : string
extension : string
Returns: string

this.CopyShim

Full Usage: this.CopyShim

Parameters:
    src : string
    dest : string
    overwrite : bool

Modifiers: abstract
src : string
dest : string
overwrite : bool

this.DirectoryCreateShim

Full Usage: this.DirectoryCreateShim

Parameters:
    path : string

Returns: string
Modifiers: abstract

A shim over Directory.Exists, but returns a string, the FullName of the resulting DirectoryInfo.

path : string
Returns: string

this.DirectoryDeleteShim

Full Usage: this.DirectoryDeleteShim

Parameters:
    path : string

Modifiers: abstract

A shim over Directory.Delete

path : string

this.DirectoryExistsShim

Full Usage: this.DirectoryExistsShim

Parameters:
    path : string

Returns: bool
Modifiers: abstract

A shim over Directory.Exists

path : string
Returns: bool

this.EnumerateDirectoriesShim

Full Usage: this.EnumerateDirectoriesShim

Parameters:
    path : string

Returns: string seq
Modifiers: abstract

A shim over Directory.EnumerateDirectories

path : string
Returns: string seq

this.EnumerateFilesShim

Full Usage: this.EnumerateFilesShim

Parameters:
    path : string
    pattern : string

Returns: string seq
Modifiers: abstract

A shim over Directory.EnumerateFiles

path : string
pattern : string
Returns: string seq

this.FileDeleteShim

Full Usage: this.FileDeleteShim

Parameters:
    fileName : string

Modifiers: abstract

A shim over File.Delete

fileName : string

this.FileExistsShim

Full Usage: this.FileExistsShim

Parameters:
    fileName : string

Returns: bool
Modifiers: abstract

A shim over File.Exists

fileName : string
Returns: bool

this.GetCreationTimeShim

Full Usage: this.GetCreationTimeShim

Parameters:
    path : string

Returns: DateTime
Modifiers: abstract
path : string
Returns: DateTime

this.GetDirectoryNameShim

Full Usage: this.GetDirectoryNameShim

Parameters:
    path : string

Returns: string
Modifiers: abstract

A shim for getting directory name from path

path : string
Returns: string

this.GetFullFilePathInDirectoryShim

Full Usage: this.GetFullFilePathInDirectoryShim

Parameters:
    dir : string
    fileName : string

Returns: string
Modifiers: abstract

Take in a directory, filename, and return canonicalized path to the file name in directory. If file name path is rooted, ignores directory and returns file name path. Otherwise, combines directory with file name and gets full path via GetFullPathShim(string).

dir : string
fileName : string
Returns: string

this.GetFullPathShim

Full Usage: this.GetFullPathShim

Parameters:
    fileName : string

Returns: string
Modifiers: abstract

Take in a file name with an absolute path, and return the same file name but canonicalized with respect to extra path separators (e.g. C:\\\\foo.txt) and '..' portions

fileName : string
Returns: string

this.GetLastWriteTimeShim

Full Usage: this.GetLastWriteTimeShim

Parameters:
    fileName : string

Returns: DateTime
Modifiers: abstract

Utc time of the last modification

fileName : string
Returns: DateTime

this.GetTempPathShim

Full Usage: this.GetTempPathShim

Returns: string
Modifiers: abstract

A shim over Path.GetTempPath

Returns: string

this.IsInvalidPathShim

Full Usage: this.IsInvalidPathShim

Parameters:
    path : string

Returns: bool
Modifiers: abstract

A shim over Path.IsInvalidPath

path : string
Returns: bool

this.IsPathRootedShim

Full Usage: this.IsPathRootedShim

Parameters:
    path : string

Returns: bool
Modifiers: abstract

A shim over Path.IsPathRooted

path : string
Returns: bool

this.IsStableFileHeuristic

Full Usage: this.IsStableFileHeuristic

Parameters:
    fileName : string

Returns: bool
Modifiers: abstract

Used to determine if a file will not be subject to deletion during the lifetime of a typical client process.

fileName : string
Returns: bool

this.NormalizePathShim

Full Usage: this.NormalizePathShim

Parameters:
    path : string

Returns: string
Modifiers: abstract

Removes relative parts from any full paths

path : string
Returns: string

this.OpenFileForReadShim

Full Usage: this.OpenFileForReadShim

Parameters:
    filePath : string
    ?useMemoryMappedFile : bool
    ?shouldShadowCopy : bool

Returns: Stream
Modifiers: abstract

Open the file for read, returns ByteMemory, uses either FileStream (for smaller files) or MemoryMappedFile (for potentially big files, such as dlls).

filePath : string
?useMemoryMappedFile : bool
?shouldShadowCopy : bool
Returns: Stream

this.OpenFileForWriteShim

Full Usage: this.OpenFileForWriteShim

Parameters:
Returns: Stream
Modifiers: abstract

Open the file for writing. Returns a Stream.

filePath : string
?fileMode : FileMode
?fileAccess : FileAccess
?fileShare : FileShare
Returns: Stream

Type something to start searching.