All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.16.0 - 2026-01-08
- Add
Python 3.14support. - Fix atomic file operations support on Windows. #121
- Normalize paths to use OS specific separators in
search_*methods. - Bump requirements and
pre-commithooks.
0.15.0 - 2025-02-06
- Split codebase into modules.
- Convert tests to
pytest. - Bump requirements and
pre-commithooks.
0.14.1 - 2024-03-19
- Add
mypytopre-commit. - Add
transform_filepathmethod. #12 #13 - Fix
join_filenamereturn value whenbasenameorextensionare empty. - Fix
pyprojectRuffconf warnings. - Bump requirements and
pre-commithooks.
0.13.1 - 2024-01-24
- Fix permissions inheritance from existing file when using
write_filewithatomic=True. #94 - Bump requirements and
pre-commithooks.
0.13.0 - 2023-12-19
- Add
get_permissionsandset_permissionsmethods. - Fix permissions lost when using
write_filewithatomic=True. #94 - Improve
write_filewithatomic=Trueatomicity. #91 - Remove tests duplicated code.
0.12.0 - 2023-12-11
- Add possibility to write files atomically (
fsutil.write_file(path, content, atomic=True)). #91
0.11.0 - 2023-11-01
- Add
Python 3.12support. (#84) - Add
tarfiles operations support. #48 (#87) - Switch from
setup.cfgtopyproject.toml. - Replace
flake8withRuff. - Fix
toxtest command. - Upgrade syntax for
Python >= 3.8. - Reformat tests code.
- Set
Blackpre-commit hookline-lengthoption value. - Add
fix-future-annotationspre-commithook. - Bump requirements and
pre-commithooks.
0.10.0 - 2023-02-01
- Rename default branch from
mastertomain. - Move
flake8config tosetup.cfg. - Increase
flake8checks. - Add
mypyto CI (strict mode). - Add
pre-committo CI. - Force keyword arguments .
- Remove unused import.
- Add type hints. #18
- Bump requirements and
pre-commithooks.
0.9.3 - 2023-01-12
- Remove
tests/from dist.
0.9.2 - 2023-01-11
- Fix
FileNotFoundErrorwhen callingmake_dirs_for_filewith filename only. - Pin test requirements.
- Bump test requirements.
0.9.1 - 2023-01-02
- Fix
OSErrorwhen downloading multiple files to the same temp dir.
0.9.0 - 2023-01-02
- Drop old code targeting
Python < 3.8. - Add
get_unique_namemethod. - Add
replace_filemethod. - Add
replace_dirmethod. - Add
get_dir_hashmethod. #10 - Add support to
pathlib.Pathpath arguments. #14 - Add default value for
patternargument insearch_dirsandsearch_filesmethods. - Add more assertions on path args.
- Increase tests coverage.
- Add
setup.cfg(setuptoolsdeclarative syntax) generated usingsetuptools-py2cfg. - Add
pyupgradetopre-commitconfig. - Fix duplicated test name.
- Remove unused variable in tests.
0.8.0 - 2022-12-09
- Add
Python 3.11support. - Drop
Python < 3.8support. #17 - Add
pypyto CI. - Add
pre-commit. - Add default json encoder to
write_file_jsonfor encoding alsodatetimeandsetobjects by default. - Replace
str.formatwithf-strings. - Make
dirpathargument optional indownload_filemethod. - Fix
download_fileNameErrorwhenrequestsis not installed. - Increase tests coverage.
- Bump requirements and GitHub actions versions.
0.7.0 - 2022-09-13
- Add
read_file_lines_countmethod. - Update
read_file_linesmethod with two new arguments:line_startandline_end(for specifying the lines-range to read).
0.6.1 - 2022-05-20
- Fixed
create_zip_filecontent directory structure.
0.6.0 - 2022-01-25
- Added
read_file_jsonandwrite_file_jsonmethods. - Removed
requestsrequirement (it's optional now).
0.5.0 - 2021-05-03
- Added
get_parent_dirmethod. - Updated
join_pathto force concatenation even with absolute paths. - Updated
join_pathto return a normalized path. - Updated
join_filepathmethod to usejoin_path.
0.4.0 - 2020-12-23
- Added
delete_dir_contentmethod (alias forremove_dir_contentmethod). - Added
download_filemethod. - Added
read_file_from_urlmethod. - Added
remove_dir_contentand method.
0.3.0 - 2020-11-04
- Added
create_zip_filemethod. - Added
extract_zip_filemethod. - Added
get_dir_creation_datemethod. - Added
get_dir_creation_date_formattedmethod. - Added
get_dir_last_modified_datemethod. - Added
get_dir_last_modified_date_formattedmethod. - Added
get_file_creation_datemethod. - Added
get_file_creation_date_formattedmethod. - Added
get_file_last_modified_datemethod. - Added
get_file_last_modified_date_formattedmethod. - Added
read_file_linesmethod. - Refactored tests.
0.2.0 - 2020-10-29
- Added
convert_size_bytes_to_stringmethod. - Added
convert_size_string_to_bytesmethod. - Added
get_dir_sizemethod. - Added
get_dir_size_formattedmethod. - Added
get_file_sizemethod. - Added
get_file_size_formatted. - Renamed
get_pathtojoin_path. - Renamed
get_hashtoget_file_hash. - Fixed
clean_dirmethod and added relative tests. - Improved code quality and tests coverage.
0.1.0 - 2020-10-27
- Released
python-fsutil