fs.tools¶
Miscellaneous tools for operating on filesystems.
- fs.tools.copy_file_data(src_file: IO, dst_file: IO, chunk_size: Optional[int] = None) None [source]¶
Copy data from one file object to another.
- fs.tools.get_intermediate_dirs(fs: FS, dir_path: Text) List[Text] [source]¶
Get a list of non-existing intermediate directories.
- Parameters:
- Returns:
A list of non-existing paths.
- Return type:
- Raises:
DirectoryExpected – If a path component references a file and not a directory.