C# Class System.IO.FileSystem

Inheritance: IFileSystem
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Méthode Description
CopyFile ( string sourceFullPath, string destFullPath, bool overwrite ) : void
CreateDirectory ( string fullPath ) : void
DeleteFile ( string fullPath ) : void
DirectoryExists ( string fullPath ) : bool
EnumerateFileSystemInfos ( string fullPath, string searchPattern, SearchOption searchOption, SearchTarget searchTarget ) : IEnumerable
EnumeratePaths ( string fullPath, string searchPattern, SearchOption searchOption, SearchTarget searchTarget ) : IEnumerable
FileExists ( string fullPath ) : bool
GetAttributes ( string fullPath ) : FileAttributes
GetCreationTime ( string fullPath ) : DateTimeOffset
GetCurrentDirectory ( ) : string
GetFileSystemInfo ( string fullPath, bool asDirectory ) : IFileSystemObject
GetLastAccessTime ( string fullPath ) : DateTimeOffset
GetLastWriteTime ( string fullPath ) : DateTimeOffset
GetLogicalDrives ( ) : string[]
MoveDirectory ( string sourceFullPath, string destFullPath ) : void
MoveFile ( string sourceFullPath, string destFullPath ) : void
Open ( string fullPath, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options, FileStream parent ) : FileStream
RemoveDirectory ( string fullPath, bool recursive ) : void
ReplaceFile ( string sourceFullPath, string destFullPath, string destBackupFullPath, bool ignoreMetadataErrors ) : void
SetAttributes ( string fullPath, FileAttributes attributes ) : void
SetCreationTime ( string fullPath, DateTimeOffset time, bool asDirectory ) : void
SetCurrentDirectory ( string fullPath ) : void
SetLastAccessTime ( string fullPath, DateTimeOffset time, bool asDirectory ) : void
SetLastWriteTime ( string fullPath, DateTimeOffset time, bool asDirectory ) : void

Method Details

CopyFile() public abstract méthode

public abstract CopyFile ( string sourceFullPath, string destFullPath, bool overwrite ) : void
sourceFullPath string
destFullPath string
overwrite bool
Résultat void

CreateDirectory() public abstract méthode

public abstract CreateDirectory ( string fullPath ) : void
fullPath string
Résultat void

DeleteFile() public abstract méthode

public abstract DeleteFile ( string fullPath ) : void
fullPath string
Résultat void

DirectoryExists() public abstract méthode

public abstract DirectoryExists ( string fullPath ) : bool
fullPath string
Résultat bool

EnumerateFileSystemInfos() public abstract méthode

public abstract EnumerateFileSystemInfos ( string fullPath, string searchPattern, SearchOption searchOption, SearchTarget searchTarget ) : IEnumerable
fullPath string
searchPattern string
searchOption SearchOption
searchTarget SearchTarget
Résultat IEnumerable

EnumeratePaths() public abstract méthode

public abstract EnumeratePaths ( string fullPath, string searchPattern, SearchOption searchOption, SearchTarget searchTarget ) : IEnumerable
fullPath string
searchPattern string
searchOption SearchOption
searchTarget SearchTarget
Résultat IEnumerable

FileExists() public abstract méthode

public abstract FileExists ( string fullPath ) : bool
fullPath string
Résultat bool

GetAttributes() public abstract méthode

public abstract GetAttributes ( string fullPath ) : FileAttributes
fullPath string
Résultat FileAttributes

GetCreationTime() public abstract méthode

public abstract GetCreationTime ( string fullPath ) : DateTimeOffset
fullPath string
Résultat DateTimeOffset

GetCurrentDirectory() public abstract méthode

public abstract GetCurrentDirectory ( ) : string
Résultat string

GetFileSystemInfo() public abstract méthode

public abstract GetFileSystemInfo ( string fullPath, bool asDirectory ) : IFileSystemObject
fullPath string
asDirectory bool
Résultat IFileSystemObject

GetLastAccessTime() public abstract méthode

public abstract GetLastAccessTime ( string fullPath ) : DateTimeOffset
fullPath string
Résultat DateTimeOffset

GetLastWriteTime() public abstract méthode

public abstract GetLastWriteTime ( string fullPath ) : DateTimeOffset
fullPath string
Résultat DateTimeOffset

GetLogicalDrives() public abstract méthode

public abstract GetLogicalDrives ( ) : string[]
Résultat string[]

MoveDirectory() public abstract méthode

public abstract MoveDirectory ( string sourceFullPath, string destFullPath ) : void
sourceFullPath string
destFullPath string
Résultat void

MoveFile() public abstract méthode

public abstract MoveFile ( string sourceFullPath, string destFullPath ) : void
sourceFullPath string
destFullPath string
Résultat void

Open() public abstract méthode

public abstract Open ( string fullPath, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options, FileStream parent ) : FileStream
fullPath string
mode FileMode
access FileAccess
share FileShare
bufferSize int
options FileOptions
parent FileStream
Résultat FileStream

RemoveDirectory() public abstract méthode

public abstract RemoveDirectory ( string fullPath, bool recursive ) : void
fullPath string
recursive bool
Résultat void

ReplaceFile() public abstract méthode

public abstract ReplaceFile ( string sourceFullPath, string destFullPath, string destBackupFullPath, bool ignoreMetadataErrors ) : void
sourceFullPath string
destFullPath string
destBackupFullPath string
ignoreMetadataErrors bool
Résultat void

SetAttributes() public abstract méthode

public abstract SetAttributes ( string fullPath, FileAttributes attributes ) : void
fullPath string
attributes FileAttributes
Résultat void

SetCreationTime() public abstract méthode

public abstract SetCreationTime ( string fullPath, DateTimeOffset time, bool asDirectory ) : void
fullPath string
time DateTimeOffset
asDirectory bool
Résultat void

SetCurrentDirectory() public abstract méthode

public abstract SetCurrentDirectory ( string fullPath ) : void
fullPath string
Résultat void

SetLastAccessTime() public abstract méthode

public abstract SetLastAccessTime ( string fullPath, DateTimeOffset time, bool asDirectory ) : void
fullPath string
time DateTimeOffset
asDirectory bool
Résultat void

SetLastWriteTime() public abstract méthode

public abstract SetLastWriteTime ( string fullPath, DateTimeOffset time, bool asDirectory ) : void
fullPath string
time DateTimeOffset
asDirectory bool
Résultat void