On 2018-03-18 10:55, Paul Moore wrote:
Should Path() have methods to access all file operations?
No, (Counterexample, having a Path operation to set Windows ACLs for a path).
Agreed, not a big fan of everything filesystem-related in pathlib, simply
because it doesn't read well. Having them scattered isn't a great experience
either.
Perhaps it would be better to have a filesystem package instead, maybe named
"fs" that included all this stuff in one easy to use location. File stuff from
os, path stuff from os.path, pathlib, utils like stat, and shutil etc?
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/