voxcity.utils.weather.filesΒΆ

FunctionsΒΆ

safe_rename(β†’ pathlib.Path)

Safely rename a file, handling existing files by adding a number suffix.

safe_extract(β†’ pathlib.Path)

Safely extract a file from zip, handling existing files.

Module ContentsΒΆ

voxcity.utils.weather.files.safe_rename(src: pathlib.Path, dst: pathlib.Path) pathlib.Path[source]ΒΆ

Safely rename a file, handling existing files by adding a number suffix.

voxcity.utils.weather.files.safe_extract(zip_ref: zipfile.ZipFile, filename: str, extract_dir: pathlib.Path) pathlib.Path[source]ΒΆ

Safely extract a file from zip, handling existing files.