C# Class fs4net.Memory.Impl.MemoryFileSystemImpl

Inheritance: IInternalFileSystem, IDisposable
Mostra file Open project: toroso/fs4net Class Usage Examples

Public Methods

Method Description
AllDrives ( ) : IEnumerable
CopyAndOverwriteFile ( RootedCanonicalPath source, RootedCanonicalPath destination ) : void
CopyFile ( RootedCanonicalPath source, RootedCanonicalPath destination ) : void
CreateAppendStream ( RootedCanonicalPath path ) : Stream
CreateDirectory ( RootedCanonicalPath path ) : void
CreateModifyStream ( RootedCanonicalPath path ) : Stream
CreateReadStream ( RootedCanonicalPath path ) : Stream
CreateWriteStream ( RootedCanonicalPath path ) : Stream
DeleteDirectory ( RootedCanonicalPath path, bool recursive ) : void
DeleteFile ( RootedCanonicalPath path ) : void
Dispose ( ) : void
GetCurrentDirectory ( ) : string
GetDirectoriesInDirectory ( RootedCanonicalPath path ) : IEnumerable
GetDirectoryCreationTime ( RootedCanonicalPath path ) : System.DateTime
GetDirectoryLastAccessTime ( RootedCanonicalPath path ) : System.DateTime
GetDirectoryLastWriteTime ( RootedCanonicalPath path ) : System.DateTime
GetFileCreationTime ( RootedCanonicalPath path ) : System.DateTime
GetFileLastAccessTime ( RootedCanonicalPath path ) : System.DateTime
GetFileLastWriteTime ( RootedCanonicalPath path ) : System.DateTime
GetFileSize ( RootedCanonicalPath path ) : long
GetFilesInDirectory ( RootedCanonicalPath path ) : IEnumerable
GetTemporaryDirectory ( ) : string
IsDirectory ( RootedCanonicalPath path ) : bool
IsFile ( RootedCanonicalPath path ) : bool
MemoryFileSystemImpl ( ) : System
MoveDirectory ( RootedCanonicalPath source, RootedCanonicalPath destination ) : void
MoveFile ( RootedCanonicalPath source, RootedCanonicalPath destination ) : void
SetCurrentDirectory ( RootedCanonicalPath path ) : void
SetDirectoryCreationTime ( RootedCanonicalPath path, System.DateTime at ) : void
SetDirectoryLastAccessTime ( RootedCanonicalPath path, System.DateTime at ) : void
SetDirectoryLastWriteTime ( RootedCanonicalPath path, System.DateTime at ) : void
SetFileCreationTime ( RootedCanonicalPath path, System.DateTime at ) : void
SetFileLastAccessTime ( RootedCanonicalPath path, System.DateTime at ) : void
SetFileLastWriteTime ( RootedCanonicalPath path, System.DateTime at ) : void
ToString ( ) : string
WithDrives ( string driveNames ) : void

Private Methods

Method Description
CreateDirectory ( string path ) : void
CreateFile ( string path ) : FileNode
CreateFile ( string path, Func createStrategy ) : FileNode
CreateOrReuseFile ( string path ) : FileNode
FindFileNodeByPath ( string path ) : FileNode
FindFolderNodeByPath ( string path ) : FolderNode
FindNodeByPath ( string path ) : FileSystemNode
MoveFileSystemItem ( FileSystemNode sourceNode, RootedCanonicalPath destination ) : void

Method Details

AllDrives() public method

public AllDrives ( ) : IEnumerable
return IEnumerable

CopyAndOverwriteFile() public method

public CopyAndOverwriteFile ( RootedCanonicalPath source, RootedCanonicalPath destination ) : void
source fs4net.Framework.RootedCanonicalPath
destination fs4net.Framework.RootedCanonicalPath
return void

CopyFile() public method

public CopyFile ( RootedCanonicalPath source, RootedCanonicalPath destination ) : void
source fs4net.Framework.RootedCanonicalPath
destination fs4net.Framework.RootedCanonicalPath
return void

CreateAppendStream() public method

public CreateAppendStream ( RootedCanonicalPath path ) : Stream
path fs4net.Framework.RootedCanonicalPath
return Stream

CreateDirectory() public method

public CreateDirectory ( RootedCanonicalPath path ) : void
path fs4net.Framework.RootedCanonicalPath
return void

CreateModifyStream() public method

public CreateModifyStream ( RootedCanonicalPath path ) : Stream
path fs4net.Framework.RootedCanonicalPath
return Stream

CreateReadStream() public method

public CreateReadStream ( RootedCanonicalPath path ) : Stream
path fs4net.Framework.RootedCanonicalPath
return Stream

CreateWriteStream() public method

public CreateWriteStream ( RootedCanonicalPath path ) : Stream
path fs4net.Framework.RootedCanonicalPath
return Stream

DeleteDirectory() public method

public DeleteDirectory ( RootedCanonicalPath path, bool recursive ) : void
path fs4net.Framework.RootedCanonicalPath
recursive bool
return void

DeleteFile() public method

public DeleteFile ( RootedCanonicalPath path ) : void
path fs4net.Framework.RootedCanonicalPath
return void

Dispose() public method

public Dispose ( ) : void
return void

GetCurrentDirectory() public method

public GetCurrentDirectory ( ) : string
return string

GetDirectoriesInDirectory() public method

public GetDirectoriesInDirectory ( RootedCanonicalPath path ) : IEnumerable
path fs4net.Framework.RootedCanonicalPath
return IEnumerable

GetDirectoryCreationTime() public method

public GetDirectoryCreationTime ( RootedCanonicalPath path ) : System.DateTime
path fs4net.Framework.RootedCanonicalPath
return System.DateTime

GetDirectoryLastAccessTime() public method

public GetDirectoryLastAccessTime ( RootedCanonicalPath path ) : System.DateTime
path fs4net.Framework.RootedCanonicalPath
return System.DateTime

GetDirectoryLastWriteTime() public method

public GetDirectoryLastWriteTime ( RootedCanonicalPath path ) : System.DateTime
path fs4net.Framework.RootedCanonicalPath
return System.DateTime

GetFileCreationTime() public method

public GetFileCreationTime ( RootedCanonicalPath path ) : System.DateTime
path fs4net.Framework.RootedCanonicalPath
return System.DateTime

GetFileLastAccessTime() public method

public GetFileLastAccessTime ( RootedCanonicalPath path ) : System.DateTime
path fs4net.Framework.RootedCanonicalPath
return System.DateTime

GetFileLastWriteTime() public method

public GetFileLastWriteTime ( RootedCanonicalPath path ) : System.DateTime
path fs4net.Framework.RootedCanonicalPath
return System.DateTime

GetFileSize() public method

public GetFileSize ( RootedCanonicalPath path ) : long
path fs4net.Framework.RootedCanonicalPath
return long

GetFilesInDirectory() public method

public GetFilesInDirectory ( RootedCanonicalPath path ) : IEnumerable
path fs4net.Framework.RootedCanonicalPath
return IEnumerable

GetTemporaryDirectory() public method

public GetTemporaryDirectory ( ) : string
return string

IsDirectory() public method

public IsDirectory ( RootedCanonicalPath path ) : bool
path fs4net.Framework.RootedCanonicalPath
return bool

IsFile() public method

public IsFile ( RootedCanonicalPath path ) : bool
path fs4net.Framework.RootedCanonicalPath
return bool

MemoryFileSystemImpl() public method

public MemoryFileSystemImpl ( ) : System
return System

MoveDirectory() public method

public MoveDirectory ( RootedCanonicalPath source, RootedCanonicalPath destination ) : void
source fs4net.Framework.RootedCanonicalPath
destination fs4net.Framework.RootedCanonicalPath
return void

MoveFile() public method

public MoveFile ( RootedCanonicalPath source, RootedCanonicalPath destination ) : void
source fs4net.Framework.RootedCanonicalPath
destination fs4net.Framework.RootedCanonicalPath
return void

SetCurrentDirectory() public method

public SetCurrentDirectory ( RootedCanonicalPath path ) : void
path fs4net.Framework.RootedCanonicalPath
return void

SetDirectoryCreationTime() public method

public SetDirectoryCreationTime ( RootedCanonicalPath path, System.DateTime at ) : void
path fs4net.Framework.RootedCanonicalPath
at System.DateTime
return void

SetDirectoryLastAccessTime() public method

public SetDirectoryLastAccessTime ( RootedCanonicalPath path, System.DateTime at ) : void
path fs4net.Framework.RootedCanonicalPath
at System.DateTime
return void

SetDirectoryLastWriteTime() public method

public SetDirectoryLastWriteTime ( RootedCanonicalPath path, System.DateTime at ) : void
path fs4net.Framework.RootedCanonicalPath
at System.DateTime
return void

SetFileCreationTime() public method

public SetFileCreationTime ( RootedCanonicalPath path, System.DateTime at ) : void
path fs4net.Framework.RootedCanonicalPath
at System.DateTime
return void

SetFileLastAccessTime() public method

public SetFileLastAccessTime ( RootedCanonicalPath path, System.DateTime at ) : void
path fs4net.Framework.RootedCanonicalPath
at System.DateTime
return void

SetFileLastWriteTime() public method

public SetFileLastWriteTime ( RootedCanonicalPath path, System.DateTime at ) : void
path fs4net.Framework.RootedCanonicalPath
at System.DateTime
return void

ToString() public method

public ToString ( ) : string
return string

WithDrives() public method

public WithDrives ( string driveNames ) : void
driveNames string
return void