Interface IPathTraversalEngine
Interface for an implementation to find an entry for a given path
Namespace:FubarDev.WebDavServer.FileSystem
Assembly:FubarDev.WebDavServer.dll
Syntax
public interface IPathTraversalEngine
Methods
| Improve this Doc View SourceTraverseAsync(ICollection, String, CancellationToken)
Find the entry for a given path
Declaration
[NotNull]
[ItemNotNull]
Task<SelectionResult> TraverseAsync([NotNull] ICollection currentCollection, [CanBeNull] string path, CancellationToken ct)
Parameters
Type | Name | Description |
---|---|---|
ICollection | currentCollection | The root collection |
String | path | The path to traverse |
CancellationToken | ct | The cancellation token |
Returns
Type | Description |
---|---|
Task<SelectionResult> | The result for the path search |
TraverseAsync(IFileSystem, String, CancellationToken)
Find the entry for a given path
Declaration
[NotNull]
[ItemNotNull]
Task<SelectionResult> TraverseAsync([NotNull] IFileSystem fileSystem, [CanBeNull] string path, CancellationToken ct)
Parameters
Type | Name | Description |
---|---|---|
IFileSystem | fileSystem | The root file system |
String | path | The path to traverse |
CancellationToken | ct | The cancellation token |
Returns
Type | Description |
---|---|
Task<SelectionResult> | The result for the path search |