Apply suggestions from code review
Co-authored-by: Todd Gamblin <tgamblin@llnl.gov>
This commit is contained in:
parent
2fba1a58ef
commit
4bc30a40a3
@ -480,13 +480,13 @@ def _current_root(self):
|
|||||||
Return the directory in which the view has been constructed.
|
Return the directory in which the view has been constructed.
|
||||||
|
|
||||||
If the view is using renameat2 for atomic updates, self.root is a directory and the root
|
If the view is using renameat2 for atomic updates, self.root is a directory and the root
|
||||||
of the underlying implementation is the same as self.root.
|
directory of the view is the same as self.root.
|
||||||
|
|
||||||
If the view us using symlinks for atomic updates, self.root is a link and we read the link
|
If the view us using symlinks for atomic updates, self.root is a link and we read the link
|
||||||
to find the root of the underlying implementation of the view.
|
to find the real root directory.
|
||||||
|
|
||||||
If self.root does not exist or is a regular file, there is no current implementation of the
|
If self.root does not exist or is a regular file, the view has not been
|
||||||
view on the filesystem.
|
constructed on the filesystem.
|
||||||
"""
|
"""
|
||||||
if not os.path.islink(self.root):
|
if not os.path.islink(self.root):
|
||||||
if os.path.isdir(self.root):
|
if os.path.isdir(self.root):
|
||||||
|
Loading…
Reference in New Issue
Block a user