Craig's Utility Library
4.0 Beta
|
Directory class More...
Public Member Functions | |
WebDirectory () | |
Constructor More... | |
WebDirectory (string Path, string UserName="", string Password="", string Domain="") | |
Constructor More... | |
WebDirectory (Uri Directory, string UserName="", string Password="", string Domain="") | |
Constructor More... | |
Public Member Functions inherited from Utilities.IO.FileSystem.BaseClasses.DirectoryBase< Uri, WebDirectory > | |
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... | |
abstract void | Create () |
Creates the directory More... | |
abstract void | Delete () |
Deletes the directory More... | |
abstract IEnumerable< IDirectory > | EnumerateDirectories (string SearchPattern="*", SearchOption Options=SearchOption.TopDirectoryOnly) |
Enumerates directories under this directory More... | |
IEnumerable< IDirectory > | EnumerateDirectories (Predicate< IDirectory > Predicate, SearchOption Options=SearchOption.TopDirectoryOnly) |
Enumerates sub directories (defaults to top level sub directories) More... | |
abstract IEnumerable< IFile > | EnumerateFiles (string SearchPattern="*", SearchOption Options=SearchOption.TopDirectoryOnly) |
Enumerates files under this directory 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... | |
abstract void | Rename (string Name) |
Renames the directory More... | |
override string | ToString () |
Gets info for the directory More... | |
Properties | |
override DateTime | Accessed [get] |
returns now More... | |
override DateTime | Created [get] |
returns now More... | |
override bool | Exists [get] |
returns true More... | |
override string | FullName [get] |
Full path More... | |
override DateTime | Modified [get] |
returns now More... | |
override string | Name [get] |
Full path More... | |
override IDirectory | Parent [get] |
Full path More... | |
Properties inherited from Utilities.IO.FileSystem.BaseClasses.DirectoryBase< Uri, WebDirectory > | |
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< Uri, WebDirectory > | |
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< Uri, WebDirectory > | |
DirectoryBase () | |
Constructor More... | |
DirectoryBase (InternalDirectoryType InternalDirectory, string UserName="", string Password="", string Domain="") | |
Constructor More... | |
Directory class
Definition at line 38 of file WebDirectory.cs.
Utilities.IO.FileSystem.Default.WebDirectory.WebDirectory | ( | ) |
Constructor
Definition at line 43 of file WebDirectory.cs.
Utilities.IO.FileSystem.Default.WebDirectory.WebDirectory | ( | string | Path, |
string | UserName = "" , |
||
string | Password = "" , |
||
string | Domain = "" |
||
) |
Constructor
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) |
Definition at line 54 of file WebDirectory.cs.
Utilities.IO.FileSystem.Default.WebDirectory.WebDirectory | ( | Uri | Directory, |
string | UserName = "" , |
||
string | Password = "" , |
||
string | Domain = "" |
||
) |
Constructor
Directory | Internal 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) |
Definition at line 66 of file WebDirectory.cs.
|
get |
returns now
Definition at line 75 of file WebDirectory.cs.
|
get |
returns now
Definition at line 83 of file WebDirectory.cs.
|
get |
returns true
Definition at line 91 of file WebDirectory.cs.
|
get |
Full path
Definition at line 99 of file WebDirectory.cs.
|
get |
returns now
Definition at line 107 of file WebDirectory.cs.
|
get |
Full path
Definition at line 115 of file WebDirectory.cs.
|
get |
Full path
Definition at line 123 of file WebDirectory.cs.