Releases: fabiocaccamo/python-fsutil
Releases · fabiocaccamo/python-fsutil
0.9.1
- Fix
OSError
when downloading multiple files to the same temp dir.
0.9.0
- Drop old code targeting
Python < 3.8
. - Add
get_unique_name
method. - Add
replace_file
method. - Add
replace_dir
method. - Add
get_dir_hash
method. #10 - Add support to
pathlib.Path
path arguments. #14 - Add default value for
pattern
argument insearch_dirs
andsearch_files
methods. - Add more assertions on path args.
- Increase tests coverage.
- Add
setup.cfg
(setuptools
declarative syntax) generated usingsetuptools-py2cfg
. - Add
pyupgrade
topre-commit
config. - Fix duplicated test name.
- Remove unused variable in tests.
0.8.0
- Add
Python 3.11
support. - Drop
Python < 3.8
support. #17 - Add
pypy
to CI. - Add
pre-commit
. - Add default json encoder to
write_file_json
for encoding alsodatetime
andset
objects by default. - Replace
str.format
withf-strings
. - Make
dirpath
argument optional indownload_file
method. - Fix
download_file
NameError
whenrequests
is not installed. - Increase tests coverage.
- Bump requirements and GitHub actions versions.
0.7.0
- Add
read_file_lines_count
method. - Update
read_file_lines
method with two new arguments:line_start
andline_end
(for specifying the lines-range to read).
0.6.1
- Fixed
create_zip_file
content directory structure.
0.6.0
- Added
read_file_json
andwrite_file_json
methods. - Removed
requests
requirement (it's optional now).
0.5.0
- Added
get_parent_dir
method. - Updated
join_path
to force concatenation even with absolute paths. - Updated
join_path
to return a normalized path. - Updated
join_filepath
method to usejoin_path
.
0.4.0
- Added
delete_dir_content
method (alias forremove_dir_content
method). - Added
download_file
method. - Added
read_file_from_url
method. - Added
remove_dir_content
and method.
0.3.0
- Added
create_zip_file
method. - Added
extract_zip_file
method. - Added
get_dir_creation_date
method. - Added
get_dir_creation_date_formatted
method. - Added
get_dir_last_modified_date
method. - Added
get_dir_last_modified_date_formatted
method. - Added
get_file_creation_date
method. - Added
get_file_creation_date_formatted
method. - Added
get_file_last_modified_date
method. - Added
get_file_last_modified_date_formatted
method. - Added
read_file_lines
method. - Refactored tests.
0.2.0
- Added
convert_size_bytes_to_string
method. - Added
convert_size_string_to_bytes
method. - Added
get_dir_size
method. - Added
get_dir_size_formatted
method. - Added
get_file_size
method. - Added
get_file_size_formatted
. - Renamed
get_path
tojoin_path
. - Renamed
get_hash
toget_file_hash
. - Fixed
clean_dir
method and added relative tests. - Improved code quality and tests coverage.