high-level file-system operations for lazy devs.
MIT License
Bot releases are hidden (Show)
mypy
to pre-commit
.transform_filepath
method. #12 #13join_filename
return value when basename
or extension
are empty.pyproject
Ruff
conf warnings.pre-commit
hooks.Published by fabiocaccamo 7 months ago
mypy
to pre-commit
.transform_filepath
method. #12 #13join_filename
return value when basename
or extension
are empty.pyproject
Ruff
conf warnings.pre-commit
hooks.Published by fabiocaccamo 9 months ago
write_file
with atomic=True
. #94pre-commit
hooks.Published by fabiocaccamo 10 months ago
get_permissions
and set_permissions
methods.write_file
with atomic=True
. #94write_file
with atomic=True
atomicity. #91Published by fabiocaccamo 11 months ago
fsutil.write_file(path, content, atomic=True)
). #91Published by fabiocaccamo 12 months ago
Python 3.12
support. (#84)tar
files operations support. #48 (#87)setup.cfg
to pyproject.toml
.flake8
with Ruff
.tox
test command.Python >= 3.8
.Black
pre-commit hook line-length
option value.fix-future-annotations
pre-commit
hook.pre-commit
hooks.Published by fabiocaccamo over 1 year ago
master
to main
.flake8
config to setup.cfg
.flake8
checks.mypy
to CI (strict mode).pre-commit
to CI.pre-commit
hooks.Published by fabiocaccamo almost 2 years ago
tests/
from dist.Published by fabiocaccamo almost 2 years ago
FileNotFoundError
when calling make_dirs_for_file
with filename only.Published by fabiocaccamo almost 2 years ago
OSError
when downloading multiple files to the same temp dir.Published by fabiocaccamo almost 2 years ago
Python < 3.8
.get_unique_name
method.replace_file
method.replace_dir
method.get_dir_hash
method. #10pathlib.Path
path arguments. #14pattern
argument in search_dirs
and search_files
methods.setup.cfg
(setuptools
declarative syntax) generated using setuptools-py2cfg
.pyupgrade
to pre-commit
config.Published by fabiocaccamo almost 2 years ago
Python 3.11
support.Python < 3.8
support. #17pypy
to CI.pre-commit
.write_file_json
for encoding also datetime
and set
objects by default.str.format
with f-strings
.dirpath
argument optional in download_file
method.download_file
NameError
when requests
is not installed.create_zip_file
method.extract_zip_file
method.get_dir_creation_date
method.get_dir_creation_date_formatted
method.get_dir_last_modified_date
method.get_dir_last_modified_date_formatted
method.get_file_creation_date
method.get_file_creation_date_formatted
method.get_file_last_modified_date
method.get_file_last_modified_date_formatted
method.read_file_lines
method.convert_size_bytes_to_string
method.convert_size_string_to_bytes
method.get_dir_size
method.get_dir_size_formatted
method.get_file_size
method.get_file_size_formatted
.get_path
to join_path
.get_hash
to get_file_hash
.clean_dir
method and added relative tests.