FileSystem

Description

abstract class Tinman.Core.IO.Files.FileSystem

Derived from

Disposable abstract
IFileSystem

Extended by

HttpFileSystem sealed
LocalFileSystem sealed
MemoryFileSystem sealed
VersionedFileSystem sealed
VirtualFileSystem sealed

Abstract base class for IFileSystem implementations.

The FileSystem class maintains a global list of the instances of its subclasses: using the constructor will add the new object to that list.

Public / Constructors

From


[ThreadSafe]
public static method From → (1)

path in : Path

[not-null]
The path.

returns → FileSystem

The FileSystem or null.

Returns the first FileSystem object in the global list that owns the given path.

Protected / Constructors

File­System


protected constructor FileSystem → ()

Creates a new instance of FileSystem.

This instance will be appended to the global list of FileSystem objects.

Protected / Methods

Directory­Fix


protected method DirectoryFix → (1)

directory in : Path

[not-null]
The directory to fix.

returns → Path

The fixed value for IFileSystem.Directory.

Fixes the given directory in path as preparation for being used as the current directory by IFileSystem.Directory.

IOException

If directory in is invalid.

Protected / Attributes

invalid­Characters


protected attribute invalidCharacters → (IBag<char>)

The set of invalid characters.

Subclasses may add characters to this set in the constructor.