IFileSystemType

PackageAxial.FileSystem
Provides access to common file, directory, and path operations.

Specification

Kind
Type
Members
99
Examples
0
AppendAllLinesSignature
this.AppendAllLines
AppendAllLinesSignature
this.AppendAllLines
AppendAllTextSignature
this.AppendAllText
AppendAllTextSignature
this.AppendAllText
AppendAllTextAsyncSignature
this.AppendAllTextAsync

Summary

NameSignatureSynopsis
Operations
AppendAllLinesthis.AppendAllLinesAppends lines to a file with the specified encoding, creating the file if needed.
AppendAllLinesthis.AppendAllLinesAppends lines to a file, creating the file if needed.
AppendAllTextthis.AppendAllTextAppends text to a file with the specified encoding, creating the file if needed.
AppendAllTextthis.AppendAllTextAppends text to a file, creating the file if needed.
AppendAllTextAsyncthis.AppendAllTextAsyncAsynchronously appends text to a file, creating the file if needed.
AppendTextthis.AppendTextOpens a UTF-8 text writer that appends to a file, creating the file if needed.
ChangeExtensionthis.ChangeExtensionChanges the extension of a path.
Combinethis.CombineCombines path segments into one path.
CopyFilethis.CopyFileCopies a file to a destination path.
CreateDirectorythis.CreateDirectoryCreates a directory and any missing parent directories.
CreateDirectorySymbolicLinkthis.CreateDirectorySymbolicLinkCreates a symbolic link to a directory.
CreateFilethis.CreateFileCreates or overwrites a file and returns the open stream.
CreateFileSymbolicLinkthis.CreateFileSymbolicLinkCreates a symbolic link to a file.
CreateTextthis.CreateTextCreates or overwrites a UTF-8 text file and returns the open writer.
DeleteDirectorythis.DeleteDirectoryDeletes a directory.
DeleteFilethis.DeleteFileDeletes the specified file if it exists.
DirectoryExiststhis.DirectoryExistsDetermines whether the specified directory exists.
EndsInDirectorySeparatorthis.EndsInDirectorySeparatorReturns whether a path ends in a directory separator.
EnumerateDirectoriesthis.EnumerateDirectoriesEnumerates directories in a directory.
EnumerateFileSystemEntriesthis.EnumerateFileSystemEntriesEnumerates files and directories in a directory.
EnumerateFilesthis.EnumerateFilesEnumerates files in a directory.
FileExiststhis.FileExistsDetermines whether the specified file exists.
GetCurrentDirectorythis.GetCurrentDirectoryGets the current working directory.
GetDirectoriesthis.GetDirectoriesGets directories in a directory.
GetDirectoryCreationTimethis.GetDirectoryCreationTimeGets directory creation time.
GetDirectoryCreationTimeUtcthis.GetDirectoryCreationTimeUtcGets directory creation time in UTC.
GetDirectoryLastAccessTimethis.GetDirectoryLastAccessTimeGets directory last access time.
GetDirectoryLastAccessTimeUtcthis.GetDirectoryLastAccessTimeUtcGets directory last access time in UTC.
GetDirectoryLastWriteTimethis.GetDirectoryLastWriteTimeGets directory last write time.
GetDirectoryLastWriteTimeUtcthis.GetDirectoryLastWriteTimeUtcGets directory last write time in UTC.
GetDirectoryNamethis.GetDirectoryNameReturns the directory name for a path.
GetDirectoryRootthis.GetDirectoryRootGets the root portion of a directory path.
GetExtensionthis.GetExtensionReturns the extension for a path.
GetFileAttributesthis.GetFileAttributesGets file attributes.
GetFileCreationTimethis.GetFileCreationTimeGets file creation time.
GetFileCreationTimeUtcthis.GetFileCreationTimeUtcGets file creation time in UTC.
GetFileLastAccessTimethis.GetFileLastAccessTimeGets file last access time.
GetFileLastAccessTimeUtcthis.GetFileLastAccessTimeUtcGets file last access time in UTC.
GetFileLastWriteTimethis.GetFileLastWriteTimeGets file last write time.
GetFileLastWriteTimeUtcthis.GetFileLastWriteTimeUtcGets file last write time in UTC.
GetFileLengththis.GetFileLengthGets the size of a file in bytes.
GetFileNamethis.GetFileNameReturns the file name for a path.
GetFileNameWithoutExtensionthis.GetFileNameWithoutExtensionReturns the file name without extension for a path.
GetFileSystemEntriesthis.GetFileSystemEntriesGets files and directories in a directory.
GetFilesthis.GetFilesGets files in a directory.
GetFullPaththis.GetFullPathReturns the full path for a path.
GetInvalidFileNameCharsthis.GetInvalidFileNameCharsReturns invalid file-name characters for the platform.
GetInvalidPathCharsthis.GetInvalidPathCharsReturns invalid path characters for the platform.
GetLogicalDrivesthis.GetLogicalDrivesGets logical drives for the current machine.
GetParentthis.GetParentGets the parent directory path.
GetPathRootthis.GetPathRootReturns the root portion of a path.
GetRandomFileNamethis.GetRandomFileNameReturns a random file or directory name.
GetRelativePaththis.GetRelativePathReturns a path relative to another path.
GetSymbolicLinkTargetthis.GetSymbolicLinkTargetReturns the immediate target stored in a symbolic link, or None when the path is not a link.
GetTempFileNamethis.GetTempFileNameCreates a uniquely named zero-byte temporary file and returns its path.
GetTempPaththis.GetTempPathReturns the temporary directory path.
HasExtensionthis.HasExtensionReturns whether a path has an extension.
IsPathFullyQualifiedthis.IsPathFullyQualifiedReturns whether a path is fully qualified.
IsPathRootedthis.IsPathRootedReturns whether a path contains a root.
MoveDirectorythis.MoveDirectoryMoves a directory to a destination path.
MoveFilethis.MoveFileMoves a file to a destination path.
OpenFilethis.OpenFileOpens a file with the specified mode, access, and sharing behavior.
OpenFilethis.OpenFileOpens a file with the specified mode and access.
OpenFilethis.OpenFileOpens a file with the specified mode.
OpenReadthis.OpenReadOpens an existing file for reading.
OpenTextthis.OpenTextOpens an existing UTF-8 text file for reading.
OpenWritethis.OpenWriteOpens a file for writing, creating it if needed.
ReadAllBytesthis.ReadAllBytesOpens a binary file, reads all bytes, and then closes the file.
ReadAllBytesAsyncthis.ReadAllBytesAsyncAsynchronously opens a binary file, reads all bytes, and then closes the file.
ReadAllLinesthis.ReadAllLinesOpens a text file with the specified encoding, reads all lines, and then closes the file.
ReadAllLinesthis.ReadAllLinesOpens a text file, reads all lines, and then closes the file.
ReadAllLinesAsyncthis.ReadAllLinesAsyncAsynchronously opens a text file, reads all lines, and then closes the file.
ReadAllTextthis.ReadAllTextOpens a text file with the specified encoding, reads all text, and then closes the file.
ReadAllTextthis.ReadAllTextOpens a text file, reads all text, and then closes the file.
ReadAllTextAsyncthis.ReadAllTextAsyncAsynchronously opens a text file, reads all text, and then closes the file.
ResolveSymbolicLinkTargetthis.ResolveSymbolicLinkTargetResolves a symbolic link target and optionally follows the complete link chain.
SetCurrentDirectorythis.SetCurrentDirectorySets the current working directory.
SetDirectoryCreationTimethis.SetDirectoryCreationTimeSets directory creation time.
SetDirectoryCreationTimeUtcthis.SetDirectoryCreationTimeUtcSets directory creation time in UTC.
SetDirectoryLastAccessTimethis.SetDirectoryLastAccessTimeSets directory last access time.
SetDirectoryLastAccessTimeUtcthis.SetDirectoryLastAccessTimeUtcSets directory last access time in UTC.
SetDirectoryLastWriteTimethis.SetDirectoryLastWriteTimeSets directory last write time.
SetDirectoryLastWriteTimeUtcthis.SetDirectoryLastWriteTimeUtcSets directory last write time in UTC.
SetFileAttributesthis.SetFileAttributesSets file attributes.
SetFileCreationTimethis.SetFileCreationTimeSets file creation time.
SetFileCreationTimeUtcthis.SetFileCreationTimeUtcSets file creation time in UTC.
SetFileLastAccessTimethis.SetFileLastAccessTimeSets file last access time.
SetFileLastAccessTimeUtcthis.SetFileLastAccessTimeUtcSets file last access time in UTC.
SetFileLastWriteTimethis.SetFileLastWriteTimeSets file last write time.
SetFileLastWriteTimeUtcthis.SetFileLastWriteTimeUtcSets file last write time in UTC.
TrimEndingDirectorySeparatorthis.TrimEndingDirectorySeparatorTrims one trailing directory separator from a path.
WriteAllBytesthis.WriteAllBytesCreates or overwrites a binary file, writes all bytes, and then closes the file.
WriteAllBytesAsyncthis.WriteAllBytesAsyncAsynchronously creates or overwrites a binary file, writes all bytes, and then closes the file.
WriteAllLinesthis.WriteAllLinesCreates or overwrites a text file with the specified encoding, writes all lines, and then closes the file.
WriteAllLinesthis.WriteAllLinesCreates or overwrites a text file, writes all lines, and then closes the file.
WriteAllLinesAsyncthis.WriteAllLinesAsyncAsynchronously creates or overwrites a text file, writes all lines, and then closes the file.
WriteAllTextthis.WriteAllTextCreates or overwrites a text file with the specified encoding, writes all text, and then closes the file.
WriteAllTextthis.WriteAllTextCreates or overwrites a text file, writes all text, and then closes the file.
WriteAllTextAsyncthis.WriteAllTextAsyncAsynchronously creates or overwrites a text file, writes all text, and then closes the file.

Operations

kind:member

AppendAllLines

this.AppendAllLines
Member
Appends lines to a file with the specified encoding, creating the file if needed.

Parameters

NameTypeDescription
pathstring
contentsstring seq
encodingEncoding

Returns

unit
kind:member

AppendAllLines

this.AppendAllLines
Member
Appends lines to a file, creating the file if needed.

Parameters

NameTypeDescription
pathstring
contentsstring seq

Returns

unit
kind:member

AppendAllText

this.AppendAllText
Member
Appends text to a file with the specified encoding, creating the file if needed.

Parameters

NameTypeDescription
pathstring
contentsstring
encodingEncoding

Returns

unit
kind:member

AppendAllText

this.AppendAllText
Member
Appends text to a file, creating the file if needed.

Parameters

NameTypeDescription
pathstring
contentsstring

Returns

unit
kind:member

AppendAllTextAsync

this.AppendAllTextAsync
Member
Asynchronously appends text to a file, creating the file if needed.

Parameters

NameTypeDescription
pathstring
contentsstring
cancellationTokenCancellationToken

Returns

Task
kind:member

AppendText

this.AppendText
Member
Opens a UTF-8 text writer that appends to a file, creating the file if needed.

Parameters

NameTypeDescription
pathstring

Returns

StreamWriter
kind:member

ChangeExtension

this.ChangeExtension
Member
Changes the extension of a path.

Parameters

NameTypeDescription
pathstring
extensionstring

Returns

string
kind:member

Combine

this.Combine
Member
Combines path segments into one path.

Parameters

NameTypeDescription
pathsstring array

Returns

string
kind:member

CopyFile

this.CopyFile
Member
Copies a file to a destination path.

Parameters

NameTypeDescription
sourcePathstring
destinationPathstring
overwritebool

Returns

unit
kind:member

CreateDirectory

this.CreateDirectory
Member
Creates a directory and any missing parent directories.

Parameters

NameTypeDescription
pathstring

Returns

unit
kind:member
this.CreateDirectorySymbolicLink
Member
Creates a symbolic link to a directory.

Parameters

NameTypeDescription
linkPathstring
targetPathstring

Returns

unit
kind:member

CreateFile

this.CreateFile
Member
Creates or overwrites a file and returns the open stream.

Parameters

NameTypeDescription
pathstring

Returns

Stream
kind:member
this.CreateFileSymbolicLink
Member
Creates a symbolic link to a file.

Parameters

NameTypeDescription
linkPathstring
targetPathstring

Returns

unit
kind:member

CreateText

this.CreateText
Member
Creates or overwrites a UTF-8 text file and returns the open writer.

Parameters

NameTypeDescription
pathstring

Returns

StreamWriter
kind:member

DeleteDirectory

this.DeleteDirectory
Member
Deletes a directory.

Parameters

NameTypeDescription
pathstring
recursivebool

Returns

unit
kind:member

DeleteFile

this.DeleteFile
Member
Deletes the specified file if it exists.

Parameters

NameTypeDescription
pathstring

Returns

unit
kind:member

DirectoryExists

this.DirectoryExists
Member
Determines whether the specified directory exists.

Parameters

NameTypeDescription
pathstring

Returns

bool
kind:member

EndsInDirectorySeparator

this.EndsInDirectorySeparator
Member
Returns whether a path ends in a directory separator.

Parameters

NameTypeDescription
pathstring

Returns

bool
kind:member

EnumerateDirectories

this.EnumerateDirectories
Member
Enumerates directories in a directory.

Parameters

NameTypeDescription
pathstring
searchPatternstring
searchOptionSearchOption

Returns

string seq
kind:member

EnumerateFileSystemEntries

this.EnumerateFileSystemEntries
Member
Enumerates files and directories in a directory.

Parameters

NameTypeDescription
pathstring
searchPatternstring
searchOptionSearchOption

Returns

string seq
kind:member

EnumerateFiles

this.EnumerateFiles
Member
Enumerates files in a directory.

Parameters

NameTypeDescription
pathstring
searchPatternstring
searchOptionSearchOption

Returns

string seq
kind:member

FileExists

this.FileExists
Member
Determines whether the specified file exists.

Parameters

NameTypeDescription
pathstring

Returns

bool
kind:member

GetCurrentDirectory

this.GetCurrentDirectory
Member
Gets the current working directory.

Returns

string
kind:member

GetDirectories

this.GetDirectories
Member
Gets directories in a directory.

Parameters

NameTypeDescription
pathstring
searchPatternstring
searchOptionSearchOption

Returns

string array
kind:member

GetDirectoryCreationTime

this.GetDirectoryCreationTime
Member
Gets directory creation time.

Parameters

NameTypeDescription
pathstring

Returns

DateTime
kind:member

GetDirectoryCreationTimeUtc

this.GetDirectoryCreationTimeUtc
Member
Gets directory creation time in UTC.

Parameters

NameTypeDescription
pathstring

Returns

DateTime
kind:member

GetDirectoryLastAccessTime

this.GetDirectoryLastAccessTime
Member
Gets directory last access time.

Parameters

NameTypeDescription
pathstring

Returns

DateTime
kind:member

GetDirectoryLastAccessTimeUtc

this.GetDirectoryLastAccessTimeUtc
Member
Gets directory last access time in UTC.

Parameters

NameTypeDescription
pathstring

Returns

DateTime
kind:member

GetDirectoryLastWriteTime

this.GetDirectoryLastWriteTime
Member
Gets directory last write time.

Parameters

NameTypeDescription
pathstring

Returns

DateTime
kind:member

GetDirectoryLastWriteTimeUtc

this.GetDirectoryLastWriteTimeUtc
Member
Gets directory last write time in UTC.

Parameters

NameTypeDescription
pathstring

Returns

DateTime
kind:member

GetDirectoryName

this.GetDirectoryName
Member
Returns the directory name for a path.

Parameters

NameTypeDescription
pathstring

Returns

string option
kind:member

GetDirectoryRoot

this.GetDirectoryRoot
Member
Gets the root portion of a directory path.

Parameters

NameTypeDescription
pathstring

Returns

string
kind:member

GetExtension

this.GetExtension
Member
Returns the extension for a path.

Parameters

NameTypeDescription
pathstring

Returns

string
kind:member

GetFileAttributes

this.GetFileAttributes
Member
Gets file attributes.

Parameters

NameTypeDescription
pathstring

Returns

FileAttributes
kind:member

GetFileCreationTime

this.GetFileCreationTime
Member
Gets file creation time.

Parameters

NameTypeDescription
pathstring

Returns

DateTime
kind:member

GetFileCreationTimeUtc

this.GetFileCreationTimeUtc
Member
Gets file creation time in UTC.

Parameters

NameTypeDescription
pathstring

Returns

DateTime
kind:member

GetFileLastAccessTime

this.GetFileLastAccessTime
Member
Gets file last access time.

Parameters

NameTypeDescription
pathstring

Returns

DateTime
kind:member

GetFileLastAccessTimeUtc

this.GetFileLastAccessTimeUtc
Member
Gets file last access time in UTC.

Parameters

NameTypeDescription
pathstring

Returns

DateTime
kind:member

GetFileLastWriteTime

this.GetFileLastWriteTime
Member
Gets file last write time.

Parameters

NameTypeDescription
pathstring

Returns

DateTime
kind:member

GetFileLastWriteTimeUtc

this.GetFileLastWriteTimeUtc
Member
Gets file last write time in UTC.

Parameters

NameTypeDescription
pathstring

Returns

DateTime
kind:member

GetFileLength

this.GetFileLength
Member
Gets the size of a file in bytes.

Parameters

NameTypeDescription
pathstring

Returns

int64
kind:member

GetFileName

this.GetFileName
Member
Returns the file name for a path.

Parameters

NameTypeDescription
pathstring

Returns

string
kind:member

GetFileNameWithoutExtension

this.GetFileNameWithoutExtension
Member
Returns the file name without extension for a path.

Parameters

NameTypeDescription
pathstring

Returns

string
kind:member

GetFileSystemEntries

this.GetFileSystemEntries
Member
Gets files and directories in a directory.

Parameters

NameTypeDescription
pathstring
searchPatternstring
searchOptionSearchOption

Returns

string array
kind:member

GetFiles

this.GetFiles
Member
Gets files in a directory.

Parameters

NameTypeDescription
pathstring
searchPatternstring
searchOptionSearchOption

Returns

string array
kind:member

GetFullPath

this.GetFullPath
Member
Returns the full path for a path.

Parameters

NameTypeDescription
pathstring

Returns

string
kind:member

GetInvalidFileNameChars

this.GetInvalidFileNameChars
Member
Returns invalid file-name characters for the platform.

Returns

char array
kind:member

GetInvalidPathChars

this.GetInvalidPathChars
Member
Returns invalid path characters for the platform.

Returns

char array
kind:member

GetLogicalDrives

this.GetLogicalDrives
Member
Gets logical drives for the current machine.

Returns

string array
kind:member

GetParent

this.GetParent
Member
Gets the parent directory path.

Parameters

NameTypeDescription
pathstring

Returns

string option
kind:member

GetPathRoot

this.GetPathRoot
Member
Returns the root portion of a path.

Parameters

NameTypeDescription
pathstring

Returns

string option
kind:member

GetRandomFileName

this.GetRandomFileName
Member
Returns a random file or directory name.

Returns

string
kind:member

GetRelativePath

this.GetRelativePath
Member
Returns a path relative to another path.

Parameters

NameTypeDescription
relativeTostring
pathstring

Returns

string
kind:member

GetSymbolicLinkTarget

this.GetSymbolicLinkTarget
Member
Returns the immediate target stored in a symbolic link, or None when the path is not a link.

Parameters

NameTypeDescription
pathstring

Returns

string option
kind:member

GetTempFileName

this.GetTempFileName
Member
Creates a uniquely named zero-byte temporary file and returns its path.

Returns

string
kind:member

GetTempPath

this.GetTempPath
Member
Returns the temporary directory path.

Returns

string
kind:member

HasExtension

this.HasExtension
Member
Returns whether a path has an extension.

Parameters

NameTypeDescription
pathstring

Returns

bool
kind:member

IsPathFullyQualified

this.IsPathFullyQualified
Member
Returns whether a path is fully qualified.

Parameters

NameTypeDescription
pathstring

Returns

bool
kind:member

IsPathRooted

this.IsPathRooted
Member
Returns whether a path contains a root.

Parameters

NameTypeDescription
pathstring

Returns

bool
kind:member

MoveDirectory

this.MoveDirectory
Member
Moves a directory to a destination path.

Parameters

NameTypeDescription
sourcePathstring
destinationPathstring

Returns

unit
kind:member

MoveFile

this.MoveFile
Member
Moves a file to a destination path.

Parameters

NameTypeDescription
sourcePathstring
destinationPathstring
overwritebool

Returns

unit
kind:member

OpenFile

this.OpenFile
Member
Opens a file with the specified mode, access, and sharing behavior.

Parameters

NameTypeDescription
pathstring
modeFileMode
accessFileAccess
shareFileShare

Returns

FileStream
kind:member

OpenFile

this.OpenFile
Member
Opens a file with the specified mode and access.

Parameters

NameTypeDescription
pathstring
modeFileMode
accessFileAccess

Returns

FileStream
kind:member

OpenFile

this.OpenFile
Member
Opens a file with the specified mode.

Parameters

NameTypeDescription
pathstring
modeFileMode

Returns

FileStream
kind:member

OpenRead

this.OpenRead
Member
Opens an existing file for reading.

Parameters

NameTypeDescription
pathstring

Returns

Stream
kind:member

OpenText

this.OpenText
Member
Opens an existing UTF-8 text file for reading.

Parameters

NameTypeDescription
pathstring

Returns

StreamReader
kind:member

OpenWrite

this.OpenWrite
Member
Opens a file for writing, creating it if needed.

Parameters

NameTypeDescription
pathstring

Returns

Stream
kind:member

ReadAllBytes

this.ReadAllBytes
Member
Opens a binary file, reads all bytes, and then closes the file.

Parameters

NameTypeDescription
pathstring

Returns

byte array
kind:member

ReadAllBytesAsync

this.ReadAllBytesAsync
Member
Asynchronously opens a binary file, reads all bytes, and then closes the file.

Parameters

NameTypeDescription
pathstring
cancellationTokenCancellationToken

Returns

Task<byte array>
kind:member

ReadAllLines

this.ReadAllLines
Member
Opens a text file with the specified encoding, reads all lines, and then closes the file.

Parameters

NameTypeDescription
pathstring
encodingEncoding

Returns

string array
kind:member

ReadAllLines

this.ReadAllLines
Member
Opens a text file, reads all lines, and then closes the file.

Parameters

NameTypeDescription
pathstring

Returns

string array
kind:member

ReadAllLinesAsync

this.ReadAllLinesAsync
Member
Asynchronously opens a text file, reads all lines, and then closes the file.

Parameters

NameTypeDescription
pathstring
cancellationTokenCancellationToken

Returns

Task<string array>
kind:member

ReadAllText

this.ReadAllText
Member
Opens a text file with the specified encoding, reads all text, and then closes the file.

Parameters

NameTypeDescription
pathstring
encodingEncoding

Returns

string
kind:member

ReadAllText

this.ReadAllText
Member
Opens a text file, reads all text, and then closes the file.

Parameters

NameTypeDescription
pathstring

Returns

string
kind:member

ReadAllTextAsync

this.ReadAllTextAsync
Member
Asynchronously opens a text file, reads all text, and then closes the file.

Parameters

NameTypeDescription
pathstring
cancellationTokenCancellationToken

Returns

Task<string>
kind:member

ResolveSymbolicLinkTarget

this.ResolveSymbolicLinkTarget
Member
Resolves a symbolic link target and optionally follows the complete link chain.

Parameters

NameTypeDescription
pathstring
returnFinalTargetbool

Returns

string option
kind:member

SetCurrentDirectory

this.SetCurrentDirectory
Member
Sets the current working directory.

Parameters

NameTypeDescription
pathstring

Returns

unit
kind:member

SetDirectoryCreationTime

this.SetDirectoryCreationTime
Member
Sets directory creation time.

Parameters

NameTypeDescription
pathstring
creationTimeDateTime

Returns

unit
kind:member

SetDirectoryCreationTimeUtc

this.SetDirectoryCreationTimeUtc
Member
Sets directory creation time in UTC.

Parameters

NameTypeDescription
pathstring
creationTimeUtcDateTime

Returns

unit
kind:member

SetDirectoryLastAccessTime

this.SetDirectoryLastAccessTime
Member
Sets directory last access time.

Parameters

NameTypeDescription
pathstring
lastAccessTimeDateTime

Returns

unit
kind:member

SetDirectoryLastAccessTimeUtc

this.SetDirectoryLastAccessTimeUtc
Member
Sets directory last access time in UTC.

Parameters

NameTypeDescription
pathstring
lastAccessTimeUtcDateTime

Returns

unit
kind:member

SetDirectoryLastWriteTime

this.SetDirectoryLastWriteTime
Member
Sets directory last write time.

Parameters

NameTypeDescription
pathstring
lastWriteTimeDateTime

Returns

unit
kind:member

SetDirectoryLastWriteTimeUtc

this.SetDirectoryLastWriteTimeUtc
Member
Sets directory last write time in UTC.

Parameters

NameTypeDescription
pathstring
lastWriteTimeUtcDateTime

Returns

unit
kind:member

SetFileAttributes

this.SetFileAttributes
Member
Sets file attributes.

Parameters

NameTypeDescription
pathstring
attributesFileAttributes

Returns

unit
kind:member

SetFileCreationTime

this.SetFileCreationTime
Member
Sets file creation time.

Parameters

NameTypeDescription
pathstring
creationTimeDateTime

Returns

unit
kind:member

SetFileCreationTimeUtc

this.SetFileCreationTimeUtc
Member
Sets file creation time in UTC.

Parameters

NameTypeDescription
pathstring
creationTimeUtcDateTime

Returns

unit
kind:member

SetFileLastAccessTime

this.SetFileLastAccessTime
Member
Sets file last access time.

Parameters

NameTypeDescription
pathstring
lastAccessTimeDateTime

Returns

unit
kind:member

SetFileLastAccessTimeUtc

this.SetFileLastAccessTimeUtc
Member
Sets file last access time in UTC.

Parameters

NameTypeDescription
pathstring
lastAccessTimeUtcDateTime

Returns

unit
kind:member

SetFileLastWriteTime

this.SetFileLastWriteTime
Member
Sets file last write time.

Parameters

NameTypeDescription
pathstring
lastWriteTimeDateTime

Returns

unit
kind:member

SetFileLastWriteTimeUtc

this.SetFileLastWriteTimeUtc
Member
Sets file last write time in UTC.

Parameters

NameTypeDescription
pathstring
lastWriteTimeUtcDateTime

Returns

unit
kind:member

TrimEndingDirectorySeparator

this.TrimEndingDirectorySeparator
Member
Trims one trailing directory separator from a path.

Parameters

NameTypeDescription
pathstring

Returns

string
kind:member

WriteAllBytes

this.WriteAllBytes
Member
Creates or overwrites a binary file, writes all bytes, and then closes the file.

Parameters

NameTypeDescription
pathstring
contentsbyte array

Returns

unit
kind:member

WriteAllBytesAsync

this.WriteAllBytesAsync
Member
Asynchronously creates or overwrites a binary file, writes all bytes, and then closes the file.

Parameters

NameTypeDescription
pathstring
contentsbyte array
cancellationTokenCancellationToken

Returns

Task
kind:member

WriteAllLines

this.WriteAllLines
Member
Creates or overwrites a text file with the specified encoding, writes all lines, and then closes the file.

Parameters

NameTypeDescription
pathstring
contentsstring seq
encodingEncoding

Returns

unit
kind:member

WriteAllLines

this.WriteAllLines
Member
Creates or overwrites a text file, writes all lines, and then closes the file.

Parameters

NameTypeDescription
pathstring
contentsstring seq

Returns

unit
kind:member

WriteAllLinesAsync

this.WriteAllLinesAsync
Member
Asynchronously creates or overwrites a text file, writes all lines, and then closes the file.

Parameters

NameTypeDescription
pathstring
contentsstring seq
cancellationTokenCancellationToken

Returns

Task
kind:member

WriteAllText

this.WriteAllText
Member
Creates or overwrites a text file with the specified encoding, writes all text, and then closes the file.

Parameters

NameTypeDescription
pathstring
contentsstring
encodingEncoding

Returns

unit
kind:member

WriteAllText

this.WriteAllText
Member
Creates or overwrites a text file, writes all text, and then closes the file.

Parameters

NameTypeDescription
pathstring
contentsstring

Returns

unit
kind:member

WriteAllTextAsync

this.WriteAllTextAsync
Member
Asynchronously creates or overwrites a text file, writes all text, and then closes the file.

Parameters

NameTypeDescription
pathstring
contentsstring
cancellationTokenCancellationToken

Returns

Task