Class DotNetFileSystem
A file system implementation using System.IO
Inherited Members
Namespace:FubarDev.WebDavServer.FileSystem.DotNet
Assembly:FubarDev.WebDavServer.FileSystem.DotNet.dll
Syntax
public class DotNetFileSystem : ILocalFileSystem, IFileSystem, IMountPointManager, IMountPointProvider
Constructors
| Improve this Doc View SourceDotNetFileSystem(DotNetFileSystemOptions, ICollection, String, IPathTraversalEngine, ILockManager, IPropertyStoreFactory)
Initializes a new instance of the DotNetFileSystem class.
Declaration
public DotNetFileSystem([NotNull] DotNetFileSystemOptions options, [CanBeNull] ICollection mountPoint, [NotNull] string rootFolder, [NotNull] IPathTraversalEngine pathTraversalEngine, ILockManager lockManager = null, IPropertyStoreFactory propertyStoreFactory = null)
Parameters
Type | Name | Description |
---|---|---|
DotNetFileSystemOptions | options | The options for this file system |
ICollection | mountPoint | The mount point where this file system should be included |
String | rootFolder | The root folder |
IPathTraversalEngine | pathTraversalEngine | The engine to traverse paths |
ILockManager | lockManager | The global lock manager |
IPropertyStoreFactory | propertyStoreFactory | The store for dead properties |
Properties
| Improve this Doc View SourceHasSubfolders
Gets a value indicating whether this file system uses sub folders.
Declaration
public bool HasSubfolders { get; }
Property Value
Type | Description |
---|---|
Boolean |
Implements
| Improve this Doc View SourceLockManager
Gets the global lock manager
Declaration
public ILockManager LockManager { get; }
Property Value
Type | Description |
---|---|
ILockManager |
Implements
| Improve this Doc View SourceMountPoints
Gets all mount points
Declaration
public IEnumerable<Uri> MountPoints { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Uri> |
Implements
| Improve this Doc View SourceOptions
Gets the file systems options
Declaration
public DotNetFileSystemOptions Options { get; }
Property Value
Type | Description |
---|---|
DotNetFileSystemOptions |
PropertyStore
Gets the property store to be used for the file system.
Declaration
public IPropertyStore PropertyStore { get; }
Property Value
Type | Description |
---|---|
IPropertyStore |
Implements
| Improve this Doc View SourceRoot
Gets the root collection
Declaration
public AsyncLazy<ICollection> Root { get; }
Property Value
Type | Description |
---|---|
AsyncLazy<ICollection> |
Implements
| Improve this Doc View SourceRootDirectoryPath
Gets the path to the root directory
Declaration
public string RootDirectoryPath { get; }
Property Value
Type | Description |
---|---|
String |
Implements
| Improve this Doc View SourceSupportsRangedRead
Gets a value indicating whether the file system allows seeking and partial reading.
Declaration
public bool SupportsRangedRead { get; }
Property Value
Type | Description |
---|---|
Boolean |
Implements
Methods
| Improve this Doc View SourceMount(Uri, IFileSystem)
Mount a source to a destination
Declaration
public void Mount(Uri source, IFileSystem destination)
Parameters
Type | Name | Description |
---|---|---|
Uri | source | The source path |
IFileSystem | destination | The destination file system |
Implements
| Improve this Doc View SourceSelectAsync(String, CancellationToken)
Finds an entry for a given path
Declaration
public Task<SelectionResult> SelectAsync(string path, CancellationToken ct)
Parameters
Type | Name | Description |
---|---|---|
String | path | The root-relative path |
CancellationToken | ct | The cancellation token |
Returns
Type | Description |
---|---|
Task<SelectionResult> | The result of the search operation |
Implements
| Improve this Doc View SourceTryGetMountPoint(Uri, out IFileSystem)
Try to get a mount point for a given path
Declaration
public bool TryGetMountPoint(Uri path, out IFileSystem destination)
Parameters
Type | Name | Description |
---|---|---|
Uri | path | The path to get the destination file system for |
IFileSystem | destination | The destination file system |
Returns
Type | Description |
---|---|
Boolean | true when there is a destination file system for a path |
Implements
| Improve this Doc View SourceUnmount(Uri)
Removes a mount from the source
Declaration
public void Unmount(Uri source)
Parameters
Type | Name | Description |
---|---|---|
Uri | source | The source path |