GeoEco.DataManagement.Directories.Directory.CopyList
- classmethod Directory.CopyList(sourceDirectoryList, destinationDirectoryList, skipExisting=False, basePath=None)
Copies a list of directories.
- Parameters:
sourceDirectoryList (
listofstr) –List of paths of the directories to copy.
The directories may contain subdirectories and files. Other types of file system objects, such as symbolic links, are not allowed.
destinationDirectoryList (
listofstr) – List of paths of the destination directories.skipExisting (
bool, optional) – If True, copying 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.Workspaceis 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.