Craig's Utility Library
4.0 Beta
|
Local directory class More...
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< IDirectory > | EnumerateDirectories (string SearchPattern="*", SearchOption Options=SearchOption.TopDirectoryOnly) |
Enumerates directories under this directory More... | |
override IEnumerable< IFile > | EnumerateFiles (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< IDirectory > | EnumerateDirectories (Predicate< IDirectory > Predicate, SearchOption Options=SearchOption.TopDirectoryOnly) |
Enumerates sub directories (defaults to top level sub directories) More... | |
IEnumerable< IFile > | EnumerateFiles (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< IFile > | GetEnumerator () |
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... | |
Local directory class
Definition at line 34 of file LocalDirectory.cs.
Utilities.IO.FileSystem.Default.LocalDirectory.LocalDirectory | ( | ) |
Constructor
Definition at line 39 of file LocalDirectory.cs.
Utilities.IO.FileSystem.Default.LocalDirectory.LocalDirectory | ( | string | Path | ) |
Utilities.IO.FileSystem.Default.LocalDirectory.LocalDirectory | ( | System.IO.DirectoryInfo | Directory | ) |
|
virtual |
Creates the directory
Implements Utilities.IO.FileSystem.BaseClasses.DirectoryBase< System.IO.DirectoryInfo, LocalDirectory >.
Definition at line 136 of file LocalDirectory.cs.
|
virtual |
Deletes the directory
Implements Utilities.IO.FileSystem.BaseClasses.DirectoryBase< System.IO.DirectoryInfo, LocalDirectory >.
Definition at line 147 of file LocalDirectory.cs.
|
virtual |
Enumerates directories under this directory
SearchPattern | Search pattern |
Options | Search options |
Implements Utilities.IO.FileSystem.BaseClasses.DirectoryBase< System.IO.DirectoryInfo, LocalDirectory >.
Definition at line 169 of file LocalDirectory.cs.
|
virtual |
Enumerates files under this directory
SearchPattern | Search pattern |
Options | Search options |
Implements Utilities.IO.FileSystem.BaseClasses.DirectoryBase< System.IO.DirectoryInfo, LocalDirectory >.
Definition at line 186 of file LocalDirectory.cs.
|
virtual |
Renames the directory
Name | Name of the new directory |
Implements Utilities.IO.FileSystem.BaseClasses.DirectoryBase< System.IO.DirectoryInfo, LocalDirectory >.
Definition at line 201 of file LocalDirectory.cs.
|
get |
Time accessed (UTC time)
Definition at line 65 of file LocalDirectory.cs.
|
get |
Time created (UTC time)
Definition at line 73 of file LocalDirectory.cs.
|
get |
Does the directory exist?
Definition at line 81 of file LocalDirectory.cs.
|
get |
Full path of the directory
Definition at line 89 of file LocalDirectory.cs.
|
get |
Time modified (UTC time)
Definition at line 97 of file LocalDirectory.cs.
|
get |
Name of the directory
Definition at line 105 of file LocalDirectory.cs.
|
get |
Parent directory
Definition at line 113 of file LocalDirectory.cs.
|
get |
Root directory
Definition at line 121 of file LocalDirectory.cs.
|
get |
Size of the directory
Definition at line 129 of file LocalDirectory.cs.