Craig's Utility Library
4.0 Beta
|
File system base class More...
Public Member Functions | |
bool | CanHandle (string Path) |
Returns true if it can handle the path, false otherwise More... | |
abstract IDirectory | Directory (string Path, string UserName="", string Password="", string Domain="") |
Gets the directory representation for the directory More... | |
abstract IFile | File (string Path, string UserName="", string Password="", string Domain="") |
Gets the class representation for the file More... | |
Public Member Functions inherited from Utilities.DataTypes.Patterns.BaseClasses.SafeDisposableBaseClass | |
void | Dispose () |
Dispose function More... | |
Protected Member Functions | |
FileSystemBase () | |
Constructor More... | |
abstract string | AbsolutePath (string Path) |
Gets the absolute path of the variable passed in More... | |
Protected Member Functions inherited from Utilities.DataTypes.Patterns.BaseClasses.SafeDisposableBaseClass | |
SafeDisposableBaseClass () | |
Construct More... | |
abstract void | Dispose (bool Managed) |
Function to override in order to dispose objects More... | |
Properties | |
abstract string | Name [get] |
Name of the file system More... | |
Regex | HandleRegex [get] |
Regex used to determine if the file system can handle the path More... | |
abstract string | HandleRegexString [get] |
Regex string used to determine if the file system can handle the path More... | |
Properties inherited from Utilities.IO.FileSystem.Interfaces.IFileSystem | |
string | Name [get] |
Name of the file system More... | |
File system base class
Definition at line 31 of file FileSystemBase.cs.
|
protected |
Constructor
Definition at line 36 of file FileSystemBase.cs.
|
protectedpure virtual |
Gets the absolute path of the variable passed in
Path | Path to convert to absolute |
Implemented in Utilities.IO.FileSystem.Default.RelativeLocalFileSystem, Utilities.IO.FileSystem.Default.AbsoluteLocalFileSystem, and Utilities.IO.FileSystem.Default.NetworkFileSystem.
bool Utilities.IO.FileSystem.BaseClasses.FileSystemBase.CanHandle | ( | string | Path | ) |
Returns true if it can handle the path, false otherwise
Path | The path to check against |
Implements Utilities.IO.FileSystem.Interfaces.IFileSystem.
Definition at line 61 of file FileSystemBase.cs.
|
pure virtual |
Gets the directory representation for the directory
Path | Path to the directory |
Domain | Domain of the user (optional) |
Password | Password to be used to access the directory (optional) |
UserName | User name to be used to access the directory (optional) |
Implements Utilities.IO.FileSystem.Interfaces.IFileSystem.
Implemented in Utilities.IO.FileSystem.BaseClasses.LocalFileSystemBase.
|
pure virtual |
Gets the class representation for the file
Path | Path to the file |
Domain | Domain of the user (optional) |
Password | Password to be used to access the file (optional) |
UserName | User name to be used to access the file (optional) |
Implements Utilities.IO.FileSystem.Interfaces.IFileSystem.
Implemented in Utilities.IO.FileSystem.BaseClasses.LocalFileSystemBase.
|
getprotected |
Regex used to determine if the file system can handle the path
Definition at line 49 of file FileSystemBase.cs.
|
getprotected |
Regex string used to determine if the file system can handle the path
Definition at line 54 of file FileSystemBase.cs.
|
get |
Name of the file system
Definition at line 44 of file FileSystemBase.cs.