Why does pathlib not have is_readable() & things like that?
Random832
random832 at fastmail.com
Tue Apr 26 09:57:24 EDT 2016
On Tue, Apr 26, 2016, at 09:30, Adam Funk wrote:
> I recently discovered pathlib in the Python 3 standard library, & find
> it very useful, but I'm a bit surprised that it doesn't offer things
> like is_readable() and is_writable. Is there a good reason for that?
Well, one reason would be EAFP. Just try to open the file and see if it
gives you a PermissionError.
More information about the Python-list
mailing list