Craig's Utility Library
4.0 Beta
|
IDirectory contract class More...
Public Member Functions | |
object | Clone () |
Creates a new object that is a copy of the current instance. More... | |
int | CompareTo (IDirectory other) |
Compares the current object with another object of the same type. More... | |
int | CompareTo (object obj) |
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. More... | |
IDirectory | CopyTo (IDirectory Directory, Enums.CopyOptions Options=CopyOptions.CopyAlways) |
Copies the directory to the specified parent directory More... | |
void | Create () |
Creates the directory if it does not currently exist More... | |
void | Delete () |
Deletes the directory More... | |
IEnumerable< IDirectory > | EnumerateDirectories (string SearchPattern="*", System.IO.SearchOption Options=SearchOption.TopDirectoryOnly) |
Enumerates sub directories (defaults to top level sub directories) More... | |
IEnumerable< IDirectory > | EnumerateDirectories (Predicate< IDirectory > Predicate, System.IO.SearchOption Options=SearchOption.TopDirectoryOnly) |
Enumerates sub directories (defaults to top level sub directories) More... | |
IEnumerable< IFile > | EnumerateFiles (string SearchPattern="*", System.IO.SearchOption Options=SearchOption.TopDirectoryOnly) |
Enumerates files within the directory (defaults to top level directory and not the sub directories) More... | |
IEnumerable< IFile > | EnumerateFiles (Predicate< IFile > Predicate, System.IO.SearchOption Options=SearchOption.TopDirectoryOnly) |
Enumerates files within the directory (defaults to top level directory and not the sub directories) More... | |
bool | Equals (IDirectory other) |
Indicates whether the current object is equal to another object of the same type. More... | |
IEnumerator< IFile > | GetEnumerator () |
Returns an enumerator that iterates through the collection. More... | |
IDirectory | MoveTo (IDirectory Directory) |
Moves the directory to the specified parent directory More... | |
void | Rename (string Name) |
Renames the directory More... | |
Public Member Functions inherited from Utilities.IO.FileSystem.Interfaces.IDirectory | |
IDirectory | CopyTo (IDirectory Directory, CopyOptions Options=CopyOptions.CopyAlways) |
Copies the directory to the specified parent directory More... | |
IEnumerable< IDirectory > | EnumerateDirectories (string SearchPattern="*", SearchOption Options=SearchOption.TopDirectoryOnly) |
Enumerates sub directories (defaults to top level sub directories) More... | |
IEnumerable< IDirectory > | EnumerateDirectories (Predicate< IDirectory > Predicate, SearchOption Options=SearchOption.TopDirectoryOnly) |
Enumerates sub directories (defaults to top level sub directories) More... | |
IEnumerable< IFile > | EnumerateFiles (string SearchPattern="*", SearchOption Options=SearchOption.TopDirectoryOnly) |
Enumerates files within the directory (defaults to top level directory and not the 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... | |
Properties | |
DateTime | Accessed [get] |
Last time it was accessed More... | |
DateTime | Created [get] |
When it was created More... | |
bool | Exists [get] |
Does the directory exist More... | |
string | FullName [get] |
Full path to the directory More... | |
DateTime | Modified [get] |
When it was last modified More... | |
string | Name [get] |
Name of the directory More... | |
IDirectory | Parent [get] |
Parent directory More... | |
IDirectory | Root [get] |
Root directory More... | |
long | Size [get] |
Size of the contents of the directory in bytes More... | |
Properties inherited from Utilities.IO.FileSystem.Interfaces.IDirectory | |
DateTime | Accessed [get] |
Last time it was accessed More... | |
DateTime | Created [get] |
When it was created More... | |
bool | Exists [get] |
Does the directory exist More... | |
string | FullName [get] |
Full path to the directory More... | |
DateTime | Modified [get] |
When it was last modified More... | |
string | Name [get] |
Name of the directory More... | |
IDirectory | Parent [get] |
Parent directory More... | |
IDirectory | Root [get] |
Root directory More... | |
long | Size [get] |
Size of the contents of the directory in bytes More... | |
IDirectory contract class
Definition at line 34 of file IDirectoryContract.cs.
object Utilities.IO.FileSystem.Interfaces.Contracts.IDirectoryContract.Clone | ( | ) |
Creates a new object that is a copy of the current instance.
Definition at line 120 of file IDirectoryContract.cs.
int Utilities.IO.FileSystem.Interfaces.Contracts.IDirectoryContract.CompareTo | ( | IDirectory | other | ) |
Compares the current object with another object of the same type.
other | An object to compare with this object. |
Definition at line 135 of file IDirectoryContract.cs.
int Utilities.IO.FileSystem.Interfaces.Contracts.IDirectoryContract.CompareTo | ( | object | obj | ) |
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
obj | An object to compare with this instance. |
Definition at line 153 of file IDirectoryContract.cs.
IDirectory Utilities.IO.FileSystem.Interfaces.Contracts.IDirectoryContract.CopyTo | ( | IDirectory | Directory, |
Enums.CopyOptions | Options = CopyOptions.CopyAlways |
||
) |
Copies the directory to the specified parent directory
Directory | Directory to copy to |
Options | Copy options |
Definition at line 164 of file IDirectoryContract.cs.
void Utilities.IO.FileSystem.Interfaces.Contracts.IDirectoryContract.Create | ( | ) |
Creates the directory if it does not currently exist
Implements Utilities.IO.FileSystem.Interfaces.IDirectory.
Definition at line 173 of file IDirectoryContract.cs.
void Utilities.IO.FileSystem.Interfaces.Contracts.IDirectoryContract.Delete | ( | ) |
Deletes the directory
Implements Utilities.IO.FileSystem.Interfaces.IDirectory.
Definition at line 180 of file IDirectoryContract.cs.
IEnumerable<IDirectory> Utilities.IO.FileSystem.Interfaces.Contracts.IDirectoryContract.EnumerateDirectories | ( | string | SearchPattern = "*" , |
System.IO.SearchOption | Options = SearchOption.TopDirectoryOnly |
||
) |
Enumerates sub directories (defaults to top level sub directories)
SearchPattern | Search pattern to use |
Options | Search options to use |
Definition at line 190 of file IDirectoryContract.cs.
IEnumerable<IDirectory> Utilities.IO.FileSystem.Interfaces.Contracts.IDirectoryContract.EnumerateDirectories | ( | Predicate< IDirectory > | Predicate, |
System.IO.SearchOption | Options = SearchOption.TopDirectoryOnly |
||
) |
Enumerates sub directories (defaults to top level sub directories)
Predicate | Predicate used to filter directories |
Options | Search options to use |
Definition at line 202 of file IDirectoryContract.cs.
IEnumerable<IFile> Utilities.IO.FileSystem.Interfaces.Contracts.IDirectoryContract.EnumerateFiles | ( | string | SearchPattern = "*" , |
System.IO.SearchOption | Options = SearchOption.TopDirectoryOnly |
||
) |
Enumerates files within the directory (defaults to top level directory and not the sub directories)
SearchPattern | Search pattern to use |
Options | Search options to use |
Definition at line 215 of file IDirectoryContract.cs.
IEnumerable<IFile> Utilities.IO.FileSystem.Interfaces.Contracts.IDirectoryContract.EnumerateFiles | ( | Predicate< IFile > | Predicate, |
System.IO.SearchOption | Options = SearchOption.TopDirectoryOnly |
||
) |
Enumerates files within the directory (defaults to top level directory and not the sub directories)
Predicate | Predicate used to filter files |
Options | Search options to use |
Definition at line 227 of file IDirectoryContract.cs.
bool Utilities.IO.FileSystem.Interfaces.Contracts.IDirectoryContract.Equals | ( | IDirectory | other | ) |
Indicates whether the current object is equal to another object of the same type.
other | An object to compare with this object. |
Definition at line 242 of file IDirectoryContract.cs.
IEnumerator<IFile> Utilities.IO.FileSystem.Interfaces.Contracts.IDirectoryContract.GetEnumerator | ( | ) |
Returns an enumerator that iterates through the collection.
Definition at line 254 of file IDirectoryContract.cs.
IDirectory Utilities.IO.FileSystem.Interfaces.Contracts.IDirectoryContract.MoveTo | ( | IDirectory | Directory | ) |
Moves the directory to the specified parent directory
Directory | Directory to move to |
Implements Utilities.IO.FileSystem.Interfaces.IDirectory.
Definition at line 264 of file IDirectoryContract.cs.
void Utilities.IO.FileSystem.Interfaces.Contracts.IDirectoryContract.Rename | ( | string | Name | ) |
Renames the directory
Name | The new name of the directory |
Implements Utilities.IO.FileSystem.Interfaces.IDirectory.
Definition at line 274 of file IDirectoryContract.cs.
|
get |
Last time it was accessed
Definition at line 40 of file IDirectoryContract.cs.
|
get |
When it was created
Definition at line 48 of file IDirectoryContract.cs.
|
get |
Does the directory exist
Definition at line 56 of file IDirectoryContract.cs.
|
get |
Full path to the directory
Definition at line 64 of file IDirectoryContract.cs.
|
get |
When it was last modified
Definition at line 76 of file IDirectoryContract.cs.
|
get |
Name of the directory
Definition at line 84 of file IDirectoryContract.cs.
|
get |
Parent directory
Definition at line 96 of file IDirectoryContract.cs.
|
get |
Root directory
Definition at line 104 of file IDirectoryContract.cs.
|
get |
Size of the contents of the directory in bytes
Definition at line 112 of file IDirectoryContract.cs.