geofileops.copy#

geofileops.copy(src: str | PathLike[Any], dst: str | PathLike[Any], keep_permissions: bool = True) None#

Copies the geofile from src to dst.

If the source file is a geofile containing of multiple files (eg. .shp) all files are copied.

Parameters:
  • src (PathLike) – the file to copy. GDAL vsi paths are not supported.

  • dst (PathLike) – the location to copy the file(s) to.

  • keep_permissions (bool, optional) – True to keep the file permissions of the source file. Defaults to True.