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

Local directory class More...

Inheritance diagram for Utilities.IO.FileSystem.Default.LocalDirectory:
Utilities.IO.FileSystem.BaseClasses.DirectoryBase< System.IO.DirectoryInfo, LocalDirectory >

Public Member Functions

 LocalDirectory ()
 Constructor More...
 
 LocalDirectory (string Path)
 Constructor More...
 
 LocalDirectory (System.IO.DirectoryInfo Directory)
 Constructor More...
 
override void Create ()
 Creates the directory More...
 
override void Delete ()
 Deletes the directory More...
 
override IEnumerable< IDirectoryEnumerateDirectories (string SearchPattern="*", SearchOption Options=SearchOption.TopDirectoryOnly)
 Enumerates directories under this directory More...
 
override IEnumerable< IFileEnumerateFiles (string SearchPattern="*", SearchOption Options=SearchOption.TopDirectoryOnly)
 Enumerates files under this directory More...
 
override void Rename (string Name)
 Renames the directory More...
 
- Public Member Functions inherited from Utilities.IO.FileSystem.BaseClasses.DirectoryBase< System.IO.DirectoryInfo, LocalDirectory >
object Clone ()
 Clones the directory object More...
 
int CompareTo (IDirectory other)
 Compares this to another directory More...
 
int CompareTo (object obj)
 Compares this object to another object More...
 
virtual IDirectory CopyTo (IDirectory Directory, CopyOptions Options=CopyOptions.CopyAlways)
 Copies the directory to the specified parent directory More...
 
IEnumerable< IDirectoryEnumerateDirectories (Predicate< IDirectory > Predicate, SearchOption Options=SearchOption.TopDirectoryOnly)
 Enumerates sub directories (defaults to top level sub directories) More...
 
IEnumerable< IFileEnumerateFiles (Predicate< IFile > Predicate, SearchOption Options=SearchOption.TopDirectoryOnly)
 Enumerates files within the directory (defaults to top level directory and not the sub directories) More...
 
override bool Equals (object obj)
 Determines if the two directories are the same More...
 
bool Equals (IDirectory other)
 Determines if the directories are equal More...
 
IEnumerator< IFileGetEnumerator ()
 Enumerates the files in the directory More...
 
override int GetHashCode ()
 Returns the hash code for the directory More...
 
virtual IDirectory MoveTo (IDirectory Directory)
 Moves this directory under another directory More...
 
override string ToString ()
 Gets info for the directory More...
 

Properties

override DateTime Accessed [get]
 Time accessed (UTC time) More...
 
override DateTime Created [get]
 Time created (UTC time) More...
 
override bool Exists [get]
 Does the directory exist? More...
 
override string FullName [get]
 Full path of the directory More...
 
override DateTime Modified [get]
 Time modified (UTC time) More...
 
override string Name [get]
 Name of the directory More...
 
override IDirectory Parent [get]
 Parent directory More...
 
override IDirectory Root [get]
 Root directory More...
 
override long Size [get]
 Size of the directory More...
 
- Properties inherited from Utilities.IO.FileSystem.BaseClasses.DirectoryBase< System.IO.DirectoryInfo, LocalDirectory >
abstract DateTime Accessed [get]
 Last time accessed (UTC time) More...
 
abstract DateTime Created [get]
 Date created (UTC time) More...
 
abstract bool Exists [get]
 Does it exist? More...
 
abstract string FullName [get]
 Full path More...
 
abstract DateTime Modified [get]
 Date modified (UTC time) More...
 
abstract string Name [get]
 Name More...
 
abstract IDirectory Parent [get]
 Parent directory More...
 
abstract IDirectory Root [get]
 Root directory More...
 
abstract long Size [get]
 Size of the directory More...
 
string Domain [get, set]
 Domain More...
 
InternalDirectoryType InternalDirectory [get, set]
 Internal directory More...
 
string Password [get, set]
 Password More...
 
string UserName [get, set]
 User name More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Utilities.IO.FileSystem.BaseClasses.DirectoryBase< System.IO.DirectoryInfo, LocalDirectory >
static bool operator!= (DirectoryBase< InternalDirectoryType, DirectoryType > Directory1, IDirectory Directory2)
 Determines if two directories are not equal More...
 
static bool operator< (DirectoryBase< InternalDirectoryType, DirectoryType > Directory1, IDirectory Directory2)
 Less than More...
 
static bool operator<= (DirectoryBase< InternalDirectoryType, DirectoryType > Directory1, IDirectory Directory2)
 Less than or equal More...
 
static bool operator== (DirectoryBase< InternalDirectoryType, DirectoryType > Directory1, IDirectory Directory2)
 Determines if two directories are equal More...
 
static bool operator> (DirectoryBase< InternalDirectoryType, DirectoryType > Directory1, IDirectory Directory2)
 Greater than More...
 
static bool operator>= (DirectoryBase< InternalDirectoryType, DirectoryType > Directory1, IDirectory Directory2)
 Greater than or equal More...
 
- Protected Member Functions inherited from Utilities.IO.FileSystem.BaseClasses.DirectoryBase< System.IO.DirectoryInfo, LocalDirectory >
 DirectoryBase ()
 Constructor More...
 
 DirectoryBase (InternalDirectoryType InternalDirectory, string UserName="", string Password="", string Domain="")
 Constructor More...
 

Detailed Description

Local directory class

Definition at line 34 of file LocalDirectory.cs.

Constructor & Destructor Documentation

Utilities.IO.FileSystem.Default.LocalDirectory.LocalDirectory ( )

Constructor

Definition at line 39 of file LocalDirectory.cs.

Utilities.IO.FileSystem.Default.LocalDirectory.LocalDirectory ( string  Path)

Constructor

Parameters
PathPath to the directory

Definition at line 47 of file LocalDirectory.cs.

Utilities.IO.FileSystem.Default.LocalDirectory.LocalDirectory ( System.IO.DirectoryInfo  Directory)

Constructor

Parameters
DirectoryInternal directory

Definition at line 56 of file LocalDirectory.cs.

Member Function Documentation

override void Utilities.IO.FileSystem.Default.LocalDirectory.Create ( )
virtual
override void Utilities.IO.FileSystem.Default.LocalDirectory.Delete ( )
virtual
override IEnumerable<IDirectory> Utilities.IO.FileSystem.Default.LocalDirectory.EnumerateDirectories ( string  SearchPattern = "*",
SearchOption  Options = SearchOption.TopDirectoryOnly 
)
virtual

Enumerates directories under this directory

Parameters
SearchPatternSearch pattern
OptionsSearch options
Returns
List of directories under this directory

Implements Utilities.IO.FileSystem.BaseClasses.DirectoryBase< System.IO.DirectoryInfo, LocalDirectory >.

Definition at line 169 of file LocalDirectory.cs.

override IEnumerable<IFile> Utilities.IO.FileSystem.Default.LocalDirectory.EnumerateFiles ( string  SearchPattern = "*",
SearchOption  Options = SearchOption.TopDirectoryOnly 
)
virtual

Enumerates files under this directory

Parameters
SearchPatternSearch pattern
OptionsSearch options
Returns
List of files under this directory

Implements Utilities.IO.FileSystem.BaseClasses.DirectoryBase< System.IO.DirectoryInfo, LocalDirectory >.

Definition at line 186 of file LocalDirectory.cs.

override void Utilities.IO.FileSystem.Default.LocalDirectory.Rename ( string  Name)
virtual

Renames the directory

Parameters
NameName of the new directory

Implements Utilities.IO.FileSystem.BaseClasses.DirectoryBase< System.IO.DirectoryInfo, LocalDirectory >.

Definition at line 201 of file LocalDirectory.cs.

Property Documentation

override DateTime Utilities.IO.FileSystem.Default.LocalDirectory.Accessed
get

Time accessed (UTC time)

Definition at line 65 of file LocalDirectory.cs.

override DateTime Utilities.IO.FileSystem.Default.LocalDirectory.Created
get

Time created (UTC time)

Definition at line 73 of file LocalDirectory.cs.

override bool Utilities.IO.FileSystem.Default.LocalDirectory.Exists
get

Does the directory exist?

Definition at line 81 of file LocalDirectory.cs.

override string Utilities.IO.FileSystem.Default.LocalDirectory.FullName
get

Full path of the directory

Definition at line 89 of file LocalDirectory.cs.

override DateTime Utilities.IO.FileSystem.Default.LocalDirectory.Modified
get

Time modified (UTC time)

Definition at line 97 of file LocalDirectory.cs.

override string Utilities.IO.FileSystem.Default.LocalDirectory.Name
get

Name of the directory

Definition at line 105 of file LocalDirectory.cs.

override IDirectory Utilities.IO.FileSystem.Default.LocalDirectory.Parent
get

Parent directory

Definition at line 113 of file LocalDirectory.cs.

override IDirectory Utilities.IO.FileSystem.Default.LocalDirectory.Root
get

Root directory

Definition at line 121 of file LocalDirectory.cs.

override long Utilities.IO.FileSystem.Default.LocalDirectory.Size
get

Size of the directory

Definition at line 129 of file LocalDirectory.cs.


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