[New-bugs-announce] [issue42497] New pathlib.Path attribute

ThatXliner report at bugs.python.org
Sat Nov 28 22:54:42 EST 2020


New submission from ThatXliner <bryan.hu.2020 at gmail.com>:

Add an attribute to pathlib.Path testing if a file/directory/symlink is executable or the user has executable permissions.

I've been trying to find a pythonic way for this (preferably in pathlib.Path) but all I found was trips to the shell and back.

This issue proposes adding an attribute (which I haven't figured the name most would like but it would be somewhere near .can_execute or .is_exe)

----------
components: Library (Lib)
messages: 382034
nosy: ThatXliner
priority: normal
severity: normal
status: open
title: New pathlib.Path attribute
versions: Python 3.10, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42497>
_______________________________________


More information about the New-bugs-announce mailing list