diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2024-06-03 03:09:00 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2024-06-03 03:09:42 +0200 |
commit | 1df28f6af186d300ab0ca51995ffee73fbe99a7d (patch) | |
tree | 5371649375fbf9a6e3945a53d223c7e1c11754c1 | |
parent | 131c2d57f4fe21265df244827625738dbf57a3d9 (diff) |
Add comment about dir_fd-aware functions.
-rw-r--r-- | common.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -122,6 +122,7 @@ def load_config(path=None, groupnames=None): ###### # The function definitions below are taken from cpython's source code # and augmented with dir_fd. +# An alternative would be to use str(Path(f'/proc/self/fd/{dir_fd}').joinpath(path)). # Is a path a directory? # (From genericpath.py.) |