C# Class System.IO.MultiplexingWin32WinRTFileSystem

Inheritance: FileSystem
显示文件 Open project: dotnet/corefx

Public Methods

Method 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 ) : Collections.Generic.IEnumerable
EnumeratePaths ( string fullPath, string searchPattern, SearchOption searchOption, SearchTarget searchTarget ) : Collections.Generic.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 ) : System.IO.FileStreamBase
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

Private Methods

Method Description
GetFileSystemObject ( FileSystemInfo caller, string fullPath ) : IFileSystemObject
Select ( string fullPath, bool isCreate = false ) : FileSystem
Select ( string sourceFullPath, string destFullPath ) : FileSystem
Select ( string sourceFullPath, string destFullPath, string destFullBackupPath ) : FileSystem
ShouldUseWinRT ( string fullPath, bool isCreate ) : bool

Method Details

CopyFile() public method

public CopyFile ( string sourceFullPath, string destFullPath, bool overwrite ) : void
sourceFullPath string
destFullPath string
overwrite bool
return void

CreateDirectory() public method

public CreateDirectory ( string fullPath ) : void
fullPath string
return void

DeleteFile() public method

public DeleteFile ( string fullPath ) : void
fullPath string
return void

DirectoryExists() public method

public DirectoryExists ( string fullPath ) : bool
fullPath string
return bool

EnumerateFileSystemInfos() public method

public EnumerateFileSystemInfos ( string fullPath, string searchPattern, SearchOption searchOption, SearchTarget searchTarget ) : Collections.Generic.IEnumerable
fullPath string
searchPattern string
searchOption SearchOption
searchTarget SearchTarget
return Collections.Generic.IEnumerable

EnumeratePaths() public method

public EnumeratePaths ( string fullPath, string searchPattern, SearchOption searchOption, SearchTarget searchTarget ) : Collections.Generic.IEnumerable
fullPath string
searchPattern string
searchOption SearchOption
searchTarget SearchTarget
return Collections.Generic.IEnumerable

FileExists() public method

public FileExists ( string fullPath ) : bool
fullPath string
return bool

GetAttributes() public method

public GetAttributes ( string fullPath ) : FileAttributes
fullPath string
return FileAttributes

GetCreationTime() public method

public GetCreationTime ( string fullPath ) : DateTimeOffset
fullPath string
return DateTimeOffset

GetCurrentDirectory() public method

public GetCurrentDirectory ( ) : string
return string

GetFileSystemInfo() public method

public GetFileSystemInfo ( string fullPath, bool asDirectory ) : IFileSystemObject
fullPath string
asDirectory bool
return IFileSystemObject

GetLastAccessTime() public method

public GetLastAccessTime ( string fullPath ) : DateTimeOffset
fullPath string
return DateTimeOffset

GetLastWriteTime() public method

public GetLastWriteTime ( string fullPath ) : DateTimeOffset
fullPath string
return DateTimeOffset

GetLogicalDrives() public method

public GetLogicalDrives ( ) : string[]
return string[]

MoveDirectory() public method

public MoveDirectory ( string sourceFullPath, string destFullPath ) : void
sourceFullPath string
destFullPath string
return void

MoveFile() public method

public MoveFile ( string sourceFullPath, string destFullPath ) : void
sourceFullPath string
destFullPath string
return void

Open() public method

public Open ( string fullPath, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options, FileStream parent ) : System.IO.FileStreamBase
fullPath string
mode FileMode
access FileAccess
share FileShare
bufferSize int
options FileOptions
parent FileStream
return System.IO.FileStreamBase

RemoveDirectory() public method

public RemoveDirectory ( string fullPath, bool recursive ) : void
fullPath string
recursive bool
return void

ReplaceFile() public method

public ReplaceFile ( string sourceFullPath, string destFullPath, string destBackupFullPath, bool ignoreMetadataErrors ) : void
sourceFullPath string
destFullPath string
destBackupFullPath string
ignoreMetadataErrors bool
return void

SetAttributes() public method

public SetAttributes ( string fullPath, FileAttributes attributes ) : void
fullPath string
attributes FileAttributes
return void

SetCreationTime() public method

public SetCreationTime ( string fullPath, DateTimeOffset time, bool asDirectory ) : void
fullPath string
time DateTimeOffset
asDirectory bool
return void

SetCurrentDirectory() public method

public SetCurrentDirectory ( string fullPath ) : void
fullPath string
return void

SetLastAccessTime() public method

public SetLastAccessTime ( string fullPath, DateTimeOffset time, bool asDirectory ) : void
fullPath string
time DateTimeOffset
asDirectory bool
return void

SetLastWriteTime() public method

public SetLastWriteTime ( string fullPath, DateTimeOffset time, bool asDirectory ) : void
fullPath string
time DateTimeOffset
asDirectory bool
return void