C# Class fs4net.Framework.FileSystem

A wrapper around the real file system. All file operations done file file descriptors created from this class will be done on the real file system.
Inheritance: IFileSystem
Exibir arquivo Open project: toroso/fs4net

Public Methods

Method Description
AllDrives ( ) : IEnumerable
DirectoryDescribing ( string fullPath ) : RootedDirectory
DirectoryDescribingCurrentDirectory ( ) : RootedDirectory
DirectoryDescribingTemporaryDirectory ( ) : RootedDirectory
DirectoryFromCurrentDirectory ( string path ) : RootedDirectory
DriveDescribing ( string driveName ) : Drive
FileDescribing ( string fullPath ) : RootedFile
FileFromCurrentDirectory ( string path ) : RootedFile
FileSystem ( ) : System

Instantiate a file system wrapper. The instance is created without a logger which means that all logged events are swallowed.

FileSystem ( ILogger logger ) : System

Instantiate a file system wrapper. The instance is created with a logger where logged events are reported.

Method Details

AllDrives() public method

public AllDrives ( ) : IEnumerable
return IEnumerable

DirectoryDescribing() public method

public DirectoryDescribing ( string fullPath ) : RootedDirectory
fullPath string
return RootedDirectory

DirectoryDescribingCurrentDirectory() public method

public DirectoryDescribingCurrentDirectory ( ) : RootedDirectory
return RootedDirectory

DirectoryDescribingTemporaryDirectory() public method

public DirectoryDescribingTemporaryDirectory ( ) : RootedDirectory
return RootedDirectory

DirectoryFromCurrentDirectory() public method

public DirectoryFromCurrentDirectory ( string path ) : RootedDirectory
path string
return RootedDirectory

DriveDescribing() public method

public DriveDescribing ( string driveName ) : Drive
driveName string
return Drive

FileDescribing() public method

public FileDescribing ( string fullPath ) : RootedFile
fullPath string
return RootedFile

FileFromCurrentDirectory() public method

public FileFromCurrentDirectory ( string path ) : RootedFile
path string
return RootedFile

FileSystem() public method

Instantiate a file system wrapper. The instance is created without a logger which means that all logged events are swallowed.
public FileSystem ( ) : System
return System

FileSystem() public method

Instantiate a file system wrapper. The instance is created with a logger where logged events are reported.
public FileSystem ( ILogger logger ) : System
logger ILogger Anything worth reporting inside the fs4net classes are sent to this logger instance.
return System