Class PathSelector
Selects a path in a file system.
Inherited Members
Namespace: FubarDev.FtpServer.FileSystem
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public static class PathSelector
Methods
| Improve this Doc View SourceSelectAsync(IUnixFileSystem, IEnumerable<IUnixDirectoryEntry>, Nullable<String>, CancellationToken)
Tries to select the given path
.
Declaration
public static Task<PathSelectionResult> SelectAsync(this IUnixFileSystem fileSystem, IEnumerable<IUnixDirectoryEntry> pathEntries, string? path, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IUnixFileSystem | fileSystem | The file system. |
IEnumerable<IUnixDirectoryEntry> | pathEntries | The current path (entries). |
Nullable<String> | path | The path to select. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<PathSelectionResult> | The result of the selection. |
SelectAsync(IUnixFileSystem, Nullable<String>, CancellationToken)
Tries to select the given path
.
Declaration
public static Task<PathSelectionResult> SelectAsync(this IUnixFileSystem fileSystem, string? path, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IUnixFileSystem | fileSystem | The file system. |
Nullable<String> | path | The path to select. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<PathSelectionResult> | The result of the selection. |