fileioutil¶
File I/O.
This module implements additional convenience utilities for file input / output.
- fileioutil.create_empty_file(empty_file_path: Path, size: int, *, fill: bytes = None) None ¶
Create an empty file.
- fileioutil.overwrite_bytes(file_path: Path, offset: int, new_bytes: bytes) None ¶
Overwrite a region of bytes in the file.
- fileioutil.set_file_size(file_path: Path, size: int, *, fill: bytes = None) None ¶
Enlarge or truncate the file.