GeoEco.DataManagement.Directories.Directory.MoveList

classmethod Directory.MoveList(sourceDirectoryList, destinationDirectoryList, skipExisting=False, basePath=None)

Moves a list of directories.

Parameters:
  • sourceDirectoryList (list of str) – List of paths of the directories to move.

  • destinationDirectoryList (list of str) – List of paths of the destination directories.

  • skipExisting (bool, optional) – If True, moving will be skipped for destination directories that already exist.

  • basePath (str, optional) –

    Base path to prepend to relative paths.

    If any of the input paths (or output paths, if this method has outputs) contained in the lists are relative paths, they will be converted to absolute paths prior to processing, as follows:

    • If a base path is provided, it will be prepended to the relative path.

    • Otherwise, if the ArcGIS geoprocessor has been initialized and the geoprocessing workspace has been set (i.e. arcpy.env.Workspace is not and empty string or None), it will be prepended to the relative path.

    • Otherwise, the current working directory for the executing process will be prepended to the path.

    Minimum length꞉ 1.