airfs.shutil
This namespace is equivalent to the Python standard library shutil namespace.
Following functions are replaced by Airfs functions:
- airfs.shutil.copy(src, dst, *, follow_symlinks=True)
Copy a source file to a destination file or directory.
Equivalent to “shutil.copy”.
Source and destination can also be binary opened file-like objects.
New in version 1.0.0.
- Parameters:
src (path-like object or file-like object) – Source file.
dst (path-like object or file-like object) – Destination file or directory.
follow_symlinks (bool) – If True, follow symlinks.
- Raises:
FileNotFoundError – Destination directory not found.
- airfs.shutil.copyfile(src, dst, *, follow_symlinks=True)
Copy a source file to a destination file.
Equivalent to “shutil.copyfile”.
Source and destination can also be binary opened file-like objects.
New in version 1.2.0.
- Parameters:
src (path-like object or file-like object) – Source file.
dst (path-like object or file-like object) – Destination file.
follow_symlinks (bool) – Follow symlinks.
- Raises:
FileNotFoundError – Destination directory not found.
See also
- “shutil” standard library documentation
Python standard library documentation, for functions that are not documented here.