Method | Description | |
---|---|---|
CopyTo ( this source, string destination, bool recursive = true, CopyOptions options = CopyOptions.CopyAlways ) : |
Copies a directory to another location
|
|
DeleteAll ( this info ) : void |
Deletes directory and all content found within it
|
|
DeleteDirectoriesNewerThan ( this directory, System.DateTime compareDate, bool recursive = false ) : |
Deletes directories newer than the specified date
|
|
DeleteDirectoriesOlderThan ( this directory, System.DateTime compareDate, bool recursive = false ) : |
Deletes directories newer than the specified date
|
|
DeleteFiles ( this directory, bool recursive = false ) : |
Deletes files from a directory
|
|
DeleteFilesNewerThan ( this directory, System.DateTime compareDate, bool recursive = false ) : |
Deletes files newer than the specified date
|
|
DeleteFilesOlderThan ( this directory, System.DateTime compareDate, bool recursive = false ) : |
Deletes files older than the specified date
|
|
DriveInfo ( this directory ) : |
Gets the drive information for a directory
|
|
EnumerateFiles ( this directory, IEnumerable |
Enumerates the files within a directory
|
|
SetAttributes ( this directory, FileAttributes attributes, bool recursive = false ) : |
Sets a directory's attributes
|
|
Size ( this directory, string searchPattern = "*", bool recursive = false ) : long |
Gets the size of all files within a directory
|
public static CopyTo ( this source, string destination, bool recursive = true, CopyOptions options = CopyOptions.CopyAlways ) : |
||
source | this | Source directory |
destination | string | Destination directory |
recursive | bool | Should the copy be recursive |
options | CopyOptions | Options used in copying |
return |
public static DeleteAll ( this info ) : void | ||
info | this | Directory info object |
return | void |
public static DeleteDirectoriesNewerThan ( this directory, System.DateTime compareDate, bool recursive = false ) : |
||
directory | this | Directory to look within |
compareDate | System.DateTime | The date to compare to |
recursive | bool | Is this a recursive call |
return |
public static DeleteDirectoriesOlderThan ( this directory, System.DateTime compareDate, bool recursive = false ) : |
||
directory | this | Directory to look within |
compareDate | System.DateTime | The date to compare to |
recursive | bool | Is this a recursive call |
return |
public static DeleteFiles ( this directory, bool recursive = false ) : |
||
directory | this | Directory to delete the files from |
recursive | bool | Should this be recursive? |
return |
public static DeleteFilesNewerThan ( this directory, System.DateTime compareDate, bool recursive = false ) : |
||
directory | this | Directory to look within |
compareDate | System.DateTime | The date to compare to |
recursive | bool | Is this a recursive call |
return |
public static DeleteFilesOlderThan ( this directory, System.DateTime compareDate, bool recursive = false ) : |
||
directory | this | Directory to look within |
compareDate | System.DateTime | The date to compare to |
recursive | bool | Is this a recursive call |
return |
public static DriveInfo ( this directory ) : |
||
directory | this | The directory to get the drive info of |
return |
public static EnumerateFiles ( this directory, IEnumerable |
||
directory | this | Directory to search in |
searchPatterns | IEnumerable |
Patterns to search for |
options | SearchOption | Search options |
return | IEnumerable |
public static SetAttributes ( this directory, FileAttributes attributes, bool recursive = false ) : |
||
directory | this | Directory |
attributes | FileAttributes | Attributes to set |
recursive | bool | Determines if this is a recursive call |
return |
public static Size ( this directory, string searchPattern = "*", bool recursive = false ) : long | ||
directory | this | Directory |
searchPattern | string | Search pattern used to tell what files to include (defaults to all) |
recursive | bool | determines if this is a recursive call or not |
return | long |