C# 클래스 NLight.IO.IOHelper

파일 보기 프로젝트 열기: slorion/nlight

공개 메소드들

메소드 설명
AreSameFile ( FileInfo fileInfoA, FileInfo fileInfoB ) : bool
AreSameFile ( string filePathA, string filePathB ) : bool
Copy ( Stream source, Stream destination, int bufferSize = DefaultBufferSize, CancellationToken cancellationToken = null, long>.Action progressCallback = null ) : Task
Copy ( string sourceFilePath, string destinationFilePath, OverwriteMode overwriteMode = OverwriteMode.AlwaysOverwrite, CopyOptions options = CopyOptions.AllowHardLinkCreation, CancellationToken cancellationToken = null, long>.Action progressCallback = null ) : Task
DeleteEmptyDirectories ( string root, bool deleteRoot = false ) : void
EnumerateDirectories ( string path, string searchPattern = "*.*", SearchOption searchOption = SearchOption.TopDirectoryOnly ) : IEnumerable
EnumerateFiles ( string path, string searchPattern = "*.*", SearchOption searchOption = SearchOption.TopDirectoryOnly ) : IEnumerable
Move ( string sourceFilePath, string destinationFilePath, OverwriteMode overwriteMode = OverwriteMode.AlwaysOverwrite, CancellationToken cancellationToken = null, long>.Action progressCallback = null ) : Task

비공개 메소드들

메소드 설명
SafeGetFileSystemEnumerable ( Func getEnumerable ) : IEnumerable

메소드 상세

AreSameFile() 공개 정적인 메소드

public static AreSameFile ( FileInfo fileInfoA, FileInfo fileInfoB ) : bool
fileInfoA System.IO.FileInfo
fileInfoB System.IO.FileInfo
리턴 bool

AreSameFile() 공개 정적인 메소드

public static AreSameFile ( string filePathA, string filePathB ) : bool
filePathA string
filePathB string
리턴 bool

Copy() 공개 정적인 메소드

public static Copy ( Stream source, Stream destination, int bufferSize = DefaultBufferSize, CancellationToken cancellationToken = null, long>.Action progressCallback = null ) : Task
source Stream
destination Stream
bufferSize int
cancellationToken System.Threading.CancellationToken
progressCallback long>.Action
리턴 Task

Copy() 공개 정적인 메소드

public static Copy ( string sourceFilePath, string destinationFilePath, OverwriteMode overwriteMode = OverwriteMode.AlwaysOverwrite, CopyOptions options = CopyOptions.AllowHardLinkCreation, CancellationToken cancellationToken = null, long>.Action progressCallback = null ) : Task
sourceFilePath string
destinationFilePath string
overwriteMode OverwriteMode
options CopyOptions
cancellationToken System.Threading.CancellationToken
progressCallback long>.Action
리턴 Task

DeleteEmptyDirectories() 공개 정적인 메소드

public static DeleteEmptyDirectories ( string root, bool deleteRoot = false ) : void
root string
deleteRoot bool
리턴 void

EnumerateDirectories() 공개 정적인 메소드

public static EnumerateDirectories ( string path, string searchPattern = "*.*", SearchOption searchOption = SearchOption.TopDirectoryOnly ) : IEnumerable
path string
searchPattern string
searchOption SearchOption
리턴 IEnumerable

EnumerateFiles() 공개 정적인 메소드

public static EnumerateFiles ( string path, string searchPattern = "*.*", SearchOption searchOption = SearchOption.TopDirectoryOnly ) : IEnumerable
path string
searchPattern string
searchOption SearchOption
리턴 IEnumerable

Move() 공개 정적인 메소드

public static Move ( string sourceFilePath, string destinationFilePath, OverwriteMode overwriteMode = OverwriteMode.AlwaysOverwrite, CancellationToken cancellationToken = null, long>.Action progressCallback = null ) : Task
sourceFilePath string
destinationFilePath string
overwriteMode OverwriteMode
cancellationToken System.Threading.CancellationToken
progressCallback long>.Action
리턴 Task