Craig's Utility Library  4.0 Beta
Utilities.IO.FileSystem.Manager Class Reference

File system manager More...

Inheritance diagram for Utilities.IO.FileSystem.Manager:
Utilities.DataTypes.Patterns.BaseClasses.SafeDisposableBaseClass

Public Member Functions

 Manager (IEnumerable< IFileSystem > FileSystems)
 Constructor More...
 
IDirectory Directory (string Path, string UserName="", string Password="", string Domain="")
 Gets the directory representation for the directory More...
 
IFile File (string Path, string UserName="", string Password="", string Domain="")
 Gets the class representation for the file More...
 
override string ToString ()
 Outputs the file system information in string format More...
 
- Public Member Functions inherited from Utilities.DataTypes.Patterns.BaseClasses.SafeDisposableBaseClass
void Dispose ()
 Dispose function More...
 

Protected Member Functions

override void Dispose (bool Managed)
 Disposes of the object More...
 
IFileSystem FindSystem (string Path)
 Finds a file system compatible with the path More...
 
- Protected Member Functions inherited from Utilities.DataTypes.Patterns.BaseClasses.SafeDisposableBaseClass
 SafeDisposableBaseClass ()
 Construct More...
 

Properties

IEnumerable< IFileSystemFileSystems [get]
 File systems that the library can use More...
 
IFileSystem this[string Name] [get]
 Gets the file system by name More...
 

Detailed Description

File system manager

Definition at line 34 of file Manager.cs.

Constructor & Destructor Documentation

Utilities.IO.FileSystem.Manager.Manager ( IEnumerable< IFileSystem FileSystems)

Constructor

Parameters
FileSystemsThe file systems.

Definition at line 40 of file Manager.cs.

Member Function Documentation

IDirectory Utilities.IO.FileSystem.Manager.Directory ( string  Path,
string  UserName = "",
string  Password = "",
string  Domain = "" 
)

Gets the directory representation for the directory

Parameters
PathPath to the directory
DomainDomain of the user (optional)
PasswordPassword to be used to access the directory (optional)
UserNameUser name to be used to access the directory (optional)
Returns
The directory object

Definition at line 65 of file Manager.cs.

override void Utilities.IO.FileSystem.Manager.Dispose ( bool  Managed)
protectedvirtual

Disposes of the object

Parameters
ManagedDetermines if all objects should be disposed or just managed objects

Implements Utilities.DataTypes.Patterns.BaseClasses.SafeDisposableBaseClass.

Definition at line 100 of file Manager.cs.

IFile Utilities.IO.FileSystem.Manager.File ( string  Path,
string  UserName = "",
string  Password = "",
string  Domain = "" 
)

Gets the class representation for the file

Parameters
PathPath to the file
DomainDomain of the user (optional)
PasswordPassword to be used to access the file (optional)
UserNameUser name to be used to access the file (optional)
Returns
The file object

Definition at line 79 of file Manager.cs.

IFileSystem Utilities.IO.FileSystem.Manager.FindSystem ( string  Path)
protected

Finds a file system compatible with the path

Parameters
PathPath to search for
Returns
The file system associated with the path

Definition at line 117 of file Manager.cs.

override string Utilities.IO.FileSystem.Manager.ToString ( )

Outputs the file system information in string format

Returns
The list of file systems that are available

Definition at line 89 of file Manager.cs.

Property Documentation

IEnumerable<IFileSystem> Utilities.IO.FileSystem.Manager.FileSystems
getprotected

File systems that the library can use

Definition at line 48 of file Manager.cs.

IFileSystem Utilities.IO.FileSystem.Manager.this[string Name]
get

Gets the file system by name

Parameters
NameName of the file system
Returns
The file system specified

Definition at line 55 of file Manager.cs.


The documentation for this class was generated from the following file: