A lot of the code in certain files, such as src/commoncode/paths.py and src/commoncode/filetype.py and possible others can be replaced by standard methods from the pathlib module. This has a few benefits:
- less maintenance on your part
- pathlib has seen more testing than your code
- possible optimisations in pathlib
Reactions are currently unavailable
A lot of the code in certain files, such as src/commoncode/paths.py and src/commoncode/filetype.py and possible others can be replaced by standard methods from the pathlib module. This has a few benefits: