sync_from_dir#

sync_from_dir(src_dir_uri: str, dst_dir: str, delete: bool = False, fs: Optional[FileSystem] = None)[source]#

Synchronize a source directory to local destination directory.

Transfers files from source to destination directories so that the destination has all the source files. If FileSystem is remote, this involves downloading.

Parameters
  • src_dir_uri (str) – URI of source directory

  • dst_dir (str) – path of local destination directory

  • delete (bool) – if True, delete files in the destination to match those in the source directory

  • fs (Optional[FileSystem]) – if supplied, use fs instead of automatically chosen FileSystem for dst_dir_uri