Class PathTraversalEngine
Helper class to find an entry for a given path
Inherited Members
Namespace:FubarDev.WebDavServer.FileSystem
Assembly:FubarDev.WebDavServer.dll
Syntax
public class PathTraversalEngine : IPathTraversalEngine
Constructors
| Improve this Doc View SourcePathTraversalEngine(ILogger<PathTraversalEngine>)
Initializes a new instance of the PathTraversalEngine class.
Declaration
public PathTraversalEngine(ILogger<PathTraversalEngine> logger = null)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Logging.ILogger<PathTraversalEngine> | logger | The logger |
Methods
| Improve this Doc View SourceTraverseAsync(ICollection, String, CancellationToken)
Find the entry for a given path
Declaration
public Task<SelectionResult> TraverseAsync(ICollection currentCollection, 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 |
Implements
| Improve this Doc View SourceTraverseAsync(IFileSystem, String, CancellationToken)
Find the entry for a given path
Declaration
public Task<SelectionResult> TraverseAsync(IFileSystem fileSystem, 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 |