[Python-ideas] New PEP proposal -- Pathlib Module Should Contain All File Operations -- version 2

Mike Miller python-ideas at mgmiller.net
Mon Mar 19 13:39:23 EDT 2018

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 

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?

More information about the Python-ideas mailing list