diff options
-rw-r--r-- | pym/portage/util/__init__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py index aa37e8c3c..ff6302e60 100644 --- a/pym/portage/util/__init__.py +++ b/pym/portage/util/__init__.py @@ -1045,7 +1045,12 @@ def write_atomic(file_path, content, **kwargs): def ensure_dirs(dir_path, **kwargs): """Create a directory and call apply_permissions. Returns True if a directory is created or the permissions needed to be - modified, and False otherwise.""" + modified, and False otherwise. + + This function's handling of EEXIST errors makes it useful for atomic + directory creation, in which multiple processes may be competing to + create the same directory. + """ created_dir = False |