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
A lot of the code in certain files, such as
src/commoncode/paths.pyandsrc/commoncode/filetype.pyand possible others can be replaced by standard methods from thepathlibmodule. This has a few benefits:pathlibhas seen more testing than your codepathlib