Show / Hide Table of Contents

Class DotNetFileSystem

A file system implementation using System.IO

Inheritance
Object
DotNetFileSystem
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace:FubarDev.WebDavServer.FileSystem.DotNet
Assembly:FubarDev.WebDavServer.FileSystem.DotNet.dll
Syntax
public class DotNetFileSystem : ILocalFileSystem, IFileSystem, IMountPointManager, IMountPointProvider

Constructors

| Improve this Doc View Source

DotNetFileSystem(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 Source

HasSubfolders

Gets a value indicating whether this file system uses sub folders.

Declaration
public bool HasSubfolders { get; }
Property Value
Type Description
Boolean
Implements
ILocalFileSystem.HasSubfolders
| Improve this Doc View Source

LockManager

Gets the global lock manager

Declaration
public ILockManager LockManager { get; }
Property Value
Type Description
ILockManager
Implements
IFileSystem.LockManager
| Improve this Doc View Source

MountPoints

Gets all mount points

Declaration
public IEnumerable<Uri> MountPoints { get; }
Property Value
Type Description
IEnumerable<Uri>
Implements
IMountPointProvider.MountPoints
| Improve this Doc View Source

Options

Gets the file systems options

Declaration
public DotNetFileSystemOptions Options { get; }
Property Value
Type Description
DotNetFileSystemOptions
| Improve this Doc View Source

PropertyStore

Gets the property store to be used for the file system.

Declaration
public IPropertyStore PropertyStore { get; }
Property Value
Type Description
IPropertyStore
Implements
IFileSystem.PropertyStore
| Improve this Doc View Source

Root

Gets the root collection

Declaration
public AsyncLazy<ICollection> Root { get; }
Property Value
Type Description
AsyncLazy<ICollection>
Implements
IFileSystem.Root
| Improve this Doc View Source

RootDirectoryPath

Gets the path to the root directory

Declaration
public string RootDirectoryPath { get; }
Property Value
Type Description
String
Implements
ILocalFileSystem.RootDirectoryPath
| Improve this Doc View Source

SupportsRangedRead

Gets a value indicating whether the file system allows seeking and partial reading.

Declaration
public bool SupportsRangedRead { get; }
Property Value
Type Description
Boolean
Implements
IFileSystem.SupportsRangedRead

Methods

| Improve this Doc View Source

Mount(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
IMountPointManager.Mount(Uri, IFileSystem)
| Improve this Doc View Source

SelectAsync(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
IFileSystem.SelectAsync(String, CancellationToken)
| Improve this Doc View Source

TryGetMountPoint(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
IMountPointProvider.TryGetMountPoint(Uri, out IFileSystem)
| Improve this Doc View Source

Unmount(Uri)

Removes a mount from the source

Declaration
public void Unmount(Uri source)
Parameters
Type Name Description
Uri source

The source path

Implements
IMountPointManager.Unmount(Uri)
  • Improve this Doc
  • View Source
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX