GeoEco.DataManagement.Files.File.MoveSilent

classmethod File.MoveSilent(sourceFile, destinationFile, overwriteExisting=False)

Moves a file and logs a debug message rather than an informational message.

This method does the same thing as the File.Move() method, except it logs a debug message rather than an informational message. It is intended for use when the file-move operation is not important enough to warrant notifying the user (for example, when an output file is extracted from a temporary directory to the final location).

Parameters:
  • sourceFile (str) – File to move. Minimum length꞉ 1. Must exist.

  • destinationFile (str) –

    New path for the file.

    Missing directories in this path will be created if they do not exist.

    If the destination file is on the same drive or file system as the source file, the source file will simply be renamed to the destination file.

    If the destination file is on a different drive or file system, the source file will be copied to the destination file and then deleted.

    Minimum length꞉ 1. Must be different than sourceFile.

  • overwriteExisting (bool, optional) – If True, the destination file will be overwritten, if it exists. If False, a ValueError will be raised if the destination file exists.