aboutsummaryrefslogtreecommitdiffstats
path: root/common.py
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-06-03 03:09:00 +0200
committerGuilhem Moulin <guilhem@fripost.org>2024-06-03 03:09:42 +0200
commit1df28f6af186d300ab0ca51995ffee73fbe99a7d (patch)
tree5371649375fbf9a6e3945a53d223c7e1c11754c1 /common.py
parent131c2d57f4fe21265df244827625738dbf57a3d9 (diff)
Add comment about dir_fd-aware functions.
Diffstat (limited to 'common.py')
-rw-r--r--common.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/common.py b/common.py
index 44c8a53..00d1add 100644
--- a/common.py
+++ b/common.py
@@ -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.)