We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.nfs
1 parent 67e1d56 commit 52d6e34Copy full SHA for 52d6e34
nipype/utils/filemanip.py
@@ -780,7 +780,7 @@ def emptydirs(path, noexist_ok=False):
780
try:
781
shutil.rmtree(path)
782
except OSError as ex:
783
- elcont = os.listdir(path)
+ elcont = [p for p in os.listdir(path) if not p.startswith(".nfs")]
784
if ex.errno in [errno.ENOTEMPTY, errno.EBUSY] and not elcont:
785
fmlogger.warning(
786
"An exception was raised trying to remove old %s, but the path"
0 commit comments