C# Class FubarDev.FtpServer.FileSystem.FileSystemExtensions

Extensions for the file system stuff
ファイルを表示 Open project: FubarDevelopment/FtpServer

Public Methods

Method Description
IsChildOfOrSameAs ( [ pathToTestAsChild, [ pathToTestAsParent, [ fileSystem ) : bool

Is the pathToTestAsChild a child or the same path as pathToTestAsParent?

Private Methods

Method Description
Clone ( [ path ) : Stack
CombinePath ( [ path ) : string
CombinePath ( [ path, [ parts ) : string
GetDirectoryAsync ( [ fileSystem, [ currentPath, [ path, CancellationToken cancellationToken ) : Task
GetDirectoryAsync ( [ fileSystem, [ currentPath, [ pathElements, CancellationToken cancellationToken ) : Task
GetFullPath ( [ path ) : string
GetFullPath ( [ path, [ fileName ) : string
GetParentPath ( [ path ) : string
GetPathElements ( [ path ) : IReadOnlyList
SearchDirectoryAsync ( [ fileSystem, [ currentPath, [ path, CancellationToken cancellationToken ) : Task>
SearchDirectoryAsync ( [ fileSystem, [ currentPath, [ pathElements, CancellationToken cancellationToken ) : Task>
SearchEntryAsync ( [ fileSystem, [ currentPath, [ path, CancellationToken cancellationToken ) : Task>
SearchEntryAsync ( this fileSystem, [ currentPath, [ pathElements, CancellationToken cancellationToken ) : Task>
SearchFileAsync ( [ fileSystem, [ currentPath, [ path, CancellationToken cancellationToken ) : Task>
SearchFileAsync ( this fileSystem, [ currentPath, [ pathElements, CancellationToken cancellationToken ) : Task>
SplitPath ( [ path ) : IReadOnlyList
ToDisplayString ( [ path ) : string

Method Details

IsChildOfOrSameAs() public static method

Is the pathToTestAsChild a child or the same path as pathToTestAsParent?
public static IsChildOfOrSameAs ( [ pathToTestAsChild, [ pathToTestAsParent, [ fileSystem ) : bool
pathToTestAsChild [ The path to test as child
pathToTestAsParent [ The path to test as parent
fileSystem [ The file system to use to compare the file names
return bool