C# 클래스 Microsoft.Common.Core.IO.FileSystem

상속: IFileSystem
파일 보기 프로젝트 열기: Microsoft/RTVS 1 사용 예제들

공개 메소드들

메소드 설명
CompressDirectory ( string path ) : string
CompressDirectory ( string path, Microsoft.Extensions.FileSystemGlobbing.Matcher matcher, IProgress progress, CancellationToken ct ) : string
CompressFile ( string path, string relativeTodir ) : string
CompressFiles ( IEnumerable paths, string relativeTodir, IProgress progress, CancellationToken ct ) : string
CreateDirectory ( string path ) : void
CreateFile ( string path ) : Stream
CreateFileSystemWatcher ( string path, string filter ) : IFileSystemWatcher
DeleteDirectory ( string path, bool recursive ) : void
DeleteFile ( string path ) : void
DirectoryExists ( string path ) : bool
FileExists ( string path ) : bool
FileOpen ( string path, FileMode mode ) : Stream
FileReadAllBytes ( string path ) : byte[]
FileReadAllLines ( string path ) : IEnumerable
FileSize ( string path ) : long
FileWriteAllBytes ( string path, byte bytes ) : void
FileWriteAllLines ( string path, IEnumerable contents ) : void
GetDirectoryInfo ( string directoryPath ) : IDirectoryInfo
GetDownloadsPath ( string fileName ) : string
GetFileAttributes ( string path ) : FileAttributes
GetFileSystemEntries ( string path, string searchPattern, SearchOption options ) : string[]
GetVersionInfo ( string path ) : IFileVersionInfo
ReadAllText ( string path ) : string
ToLongPath ( string path ) : string
ToShortPath ( string path ) : string
WriteAllText ( string path, string content ) : void

비공개 메소드들

메소드 설명
GetKnownFolderPath ( string knownFolder ) : string

메소드 상세

CompressDirectory() 공개 메소드

public CompressDirectory ( string path ) : string
path string
리턴 string

CompressDirectory() 공개 메소드

public CompressDirectory ( string path, Microsoft.Extensions.FileSystemGlobbing.Matcher matcher, IProgress progress, CancellationToken ct ) : string
path string
matcher Microsoft.Extensions.FileSystemGlobbing.Matcher
progress IProgress
ct System.Threading.CancellationToken
리턴 string

CompressFile() 공개 메소드

public CompressFile ( string path, string relativeTodir ) : string
path string
relativeTodir string
리턴 string

CompressFiles() 공개 메소드

public CompressFiles ( IEnumerable paths, string relativeTodir, IProgress progress, CancellationToken ct ) : string
paths IEnumerable
relativeTodir string
progress IProgress
ct System.Threading.CancellationToken
리턴 string

CreateDirectory() 공개 메소드

public CreateDirectory ( string path ) : void
path string
리턴 void

CreateFile() 공개 메소드

public CreateFile ( string path ) : Stream
path string
리턴 Stream

CreateFileSystemWatcher() 공개 메소드

public CreateFileSystemWatcher ( string path, string filter ) : IFileSystemWatcher
path string
filter string
리턴 IFileSystemWatcher

DeleteDirectory() 공개 메소드

public DeleteDirectory ( string path, bool recursive ) : void
path string
recursive bool
리턴 void

DeleteFile() 공개 메소드

public DeleteFile ( string path ) : void
path string
리턴 void

DirectoryExists() 공개 메소드

public DirectoryExists ( string path ) : bool
path string
리턴 bool

FileExists() 공개 메소드

public FileExists ( string path ) : bool
path string
리턴 bool

FileOpen() 공개 메소드

public FileOpen ( string path, FileMode mode ) : Stream
path string
mode FileMode
리턴 Stream

FileReadAllBytes() 공개 메소드

public FileReadAllBytes ( string path ) : byte[]
path string
리턴 byte[]

FileReadAllLines() 공개 메소드

public FileReadAllLines ( string path ) : IEnumerable
path string
리턴 IEnumerable

FileSize() 공개 메소드

public FileSize ( string path ) : long
path string
리턴 long

FileWriteAllBytes() 공개 메소드

public FileWriteAllBytes ( string path, byte bytes ) : void
path string
bytes byte
리턴 void

FileWriteAllLines() 공개 메소드

public FileWriteAllLines ( string path, IEnumerable contents ) : void
path string
contents IEnumerable
리턴 void

GetDirectoryInfo() 공개 메소드

public GetDirectoryInfo ( string directoryPath ) : IDirectoryInfo
directoryPath string
리턴 IDirectoryInfo

GetDownloadsPath() 공개 메소드

public GetDownloadsPath ( string fileName ) : string
fileName string
리턴 string

GetFileAttributes() 공개 메소드

public GetFileAttributes ( string path ) : FileAttributes
path string
리턴 FileAttributes

GetFileSystemEntries() 공개 메소드

public GetFileSystemEntries ( string path, string searchPattern, SearchOption options ) : string[]
path string
searchPattern string
options SearchOption
리턴 string[]

GetVersionInfo() 공개 메소드

public GetVersionInfo ( string path ) : IFileVersionInfo
path string
리턴 IFileVersionInfo

ReadAllText() 공개 메소드

public ReadAllText ( string path ) : string
path string
리턴 string

ToLongPath() 공개 메소드

public ToLongPath ( string path ) : string
path string
리턴 string

ToShortPath() 공개 메소드

public ToShortPath ( string path ) : string
path string
리턴 string

WriteAllText() 공개 메소드

public WriteAllText ( string path, string content ) : void
path string
content string
리턴 void