From 1df28f6af186d300ab0ca51995ffee73fbe99a7d Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 3 Jun 2024 03:09:00 +0200 Subject: Add comment about dir_fd-aware functions. --- common.py | 1 + 1 file changed, 1 insertion(+) 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.) -- cgit v1.2.3