C# Class BF2Statistics.DirectoryExt

Show file Open project: BF2Statistics/ControlCenter Class Usage Examples

Public Methods

Method Description
Copy ( string sourceDirName, string destDirName, bool copySubDirs = true, bool overwriteFiles = false ) : void

Copies the contents of one folder, to another.

Delete ( FileSystemInfo fileSystemInfo ) : void
Delete ( string path ) : void

Method Details

Copy() public static method

Copies the contents of one folder, to another.
public static Copy ( string sourceDirName, string destDirName, bool copySubDirs = true, bool overwriteFiles = false ) : void
sourceDirName string The source folder, being copied
destDirName string The destination dicrectoy, where all the copies will be stored. /// The directory does NOT have to exist.
copySubDirs bool Recursively copy sub folders?
overwriteFiles bool
return void

Delete() public static method

public static Delete ( FileSystemInfo fileSystemInfo ) : void
fileSystemInfo System.IO.FileSystemInfo
return void

Delete() public static method

public static Delete ( string path ) : void
path string
return void