VirtualFileSystem

Description

sealed class Tinman.Core.IO.Files.VirtualFileSystem

Derived from

FileSystem abstract
IConfigurable

A filesystem that maps virtual paths to real filesystem paths.

The IFile instances that are created by this class can safely be cast to VirtualFile.

Public / Constructors

Virtual​File​System


public constructor VirtualFileSystem → (2)

rootSelector in : string

[not-empty]
The root selector to use.

paths in : IEnumerable<VirtualPath>

[not-null]
The virtual path mappings to use.

Creates a new instance of VirtualFileSystem.

Public / Methods

File​Lookup


public method FileLookup → (1)

filePath in : Path

The virtual filesystem path or null.

returns → Path

The corresponding mapped filesystem path or null.

Performs a lookup for the given virtual filesystem path.

IOException

If an I/O error has occurred.

Public / Attributes

Files


public attribute Files → (get)

value : IVectorConst<VirtualFile>

[not-null]
The list of open files.

Returns a list of currently opened files.

Configuration

Config


public static attribute Config → (get)

value : IConfigurator<VirtualFileSystem>

[not-null]
The configurator object.

The configurator object for this type.

Logging

Logger


public static readonly attribute Logger → (ILogger)

The logger object of this class.