C# Class Utilities.IO.FileSystem.BaseClasses.FileSystemBase

File system base class
Inheritance: Utilities.DataTypes.Patterns.BaseClasses.SafeDisposableBaseClass, IFileSystem
显示文件 Open project: JaCraig/Craig-s-Utility-Library

Public Methods

Method Description
CanHandle ( string Path ) : bool

Returns true if it can handle the path, false otherwise

Directory ( string Path, string UserName = "", string Password = "", string Domain = "" ) : IDirectory

Gets the directory representation for the directory

File ( string Path, string UserName = "", string Password = "", string Domain = "" ) : IFile

Gets the class representation for the file

Protected Methods

Method Description
AbsolutePath ( string Path ) : string

Gets the absolute path of the variable passed in

FileSystemBase ( ) : System.Text.RegularExpressions

Constructor

Method Details

AbsolutePath() protected abstract method

Gets the absolute path of the variable passed in
protected abstract AbsolutePath ( string Path ) : string
Path string Path to convert to absolute
return string

CanHandle() public method

Returns true if it can handle the path, false otherwise
public CanHandle ( string Path ) : bool
Path string The path to check against
return bool

Directory() public abstract method

Gets the directory representation for the directory
public abstract Directory ( string Path, string UserName = "", string Password = "", string Domain = "" ) : IDirectory
Path string Path to the directory
UserName string User name to be used to access the directory (optional)
Password string Password to be used to access the directory (optional)
Domain string Domain of the user (optional)
return IDirectory

File() public abstract method

Gets the class representation for the file
public abstract File ( string Path, string UserName = "", string Password = "", string Domain = "" ) : IFile
Path string Path to the file
UserName string User name to be used to access the file (optional)
Password string Password to be used to access the file (optional)
Domain string Domain of the user (optional)
return IFile

FileSystemBase() protected method

Constructor
protected FileSystemBase ( ) : System.Text.RegularExpressions
return System.Text.RegularExpressions