GeoEco.DataManagement.Files.File.Copy
- classmethod File.Copy(sourceFile, destinationFile, overwriteExisting=False)
Copies a file.
- Parameters:
sourceFile (
str) – File to copy. Minimum length꞉ 1. Must exist.destinationFile (
str) – Copy to create. Missing directories in this path will be created if they do not exist. Minimum length꞉ 1. Must be different than sourceFile.overwriteExisting (
bool, optional) – If True, the destination file will be overwritten, if it exists. If False, aValueErrorwill be raised if the destination file exists.