fs.move

Functions for moving files between filesystems.

fs.move.move_dir(src_fs, src_path, dst_fs, dst_path, workers=0)[source]

Move a directory from one filesystem to another.

Parameters:
  • src_fs (FS or str) – Source filesystem (instance or URL).
  • src_path (str) – Path to a directory on src_fs
  • dst_fs (FS or str) – Destination filesystem (instance or URL).
  • dst_path (str) – Path to a directory on dst_fs.
  • workers (int) – Use worker threads to copy data, or 0 (default) for a single-threaded copy.
fs.move.move_file(src_fs, src_path, dst_fs, dst_path)[source]

Move a file from one filesystem to another.

Parameters:
  • src_fs (FS or str) – Source filesystem (instance or URL).
  • src_path (str) – Path to a file on src_fs.
  • dst_fs (FS or str); Destination filesystem (instance or URL) –
  • dst_path (str) – Path to a file on dst_fs.
fs.move.move_fs(src_fs, dst_fs, workers=0)[source]

Move the contents of a filesystem to another filesystem.

Parameters:
  • src_fs (FS or str) – Source filesystem (instance or URL).
  • dst_fs (FS or str) – Destination filesystem (instance or URL).
  • workers (int) – Use worker threads to copy data, or 0 (default) for a single-threaded copy.