Class VirtualFileSystem
Inheritance
VirtualFileSystem
Assembly: SociallyDistant.Framework.dll
Syntax
public class VirtualFileSystem : IVirtualFileSystem
Constructors
VirtualFileSystem(IFileSystem, IUser, IFileOverrider?)
Declaration
public VirtualFileSystem(IFileSystem rootfs, IUser user, IFileOverrider? fileOverrider = null)
Parameters
Methods
CreateDirectory(string)
Declaration
public void CreateDirectory(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
DeleteDirectory(string)
Declaration
public void DeleteDirectory(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
DeleteFile(string)
Declaration
public void DeleteFile(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
DirectoryExists(string)
Declaration
public bool DirectoryExists(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
EnumeratePaths(string, EntryTypes, bool)
Declaration
public IEnumerable<string> EnumeratePaths(string path, EntryTypes entryTypes = EntryTypes.All, bool recursive = false)
Parameters
Returns
Execute(ISystemProcess, string, IConsoleDriver, string[])
Declaration
public Task<ISystemProcess> Execute(ISystemProcess parentProcess, string path, IConsoleDriver console, string[] arguments)
Parameters
Returns
FileExists(string)
Declaration
public bool FileExists(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
GetDirectories(string)
Declaration
public IEnumerable<string> GetDirectories(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
GetFiles(string)
Declaration
public IEnumerable<string> GetFiles(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
IsExecutable(string)
Declaration
public bool IsExecutable(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
Mount(string, IFileSystem)
Declaration
public void Mount(string path, IFileSystem filesystem)
Parameters
OpenRead(string)
Declaration
public Stream OpenRead(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
OpenWrite(string)
Declaration
public Stream OpenWrite(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
OpenWriteAppend(string)
Declaration
public Stream OpenWriteAppend(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
ReadAllBytes(string)
Declaration
public byte[] ReadAllBytes(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
ReadAllText(string)
Declaration
public string ReadAllText(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
Unmount(string)
Declaration
public void Unmount(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
WriteAllBytes(string, byte[])
Declaration
public void WriteAllBytes(string path, byte[] bytes)
Parameters
WriteAllText(string, string)
Declaration
public void WriteAllText(string path, string text)
Parameters
Implements