Skip to content

Commit 402d742

Browse files
committed
Adding a second check
1 parent 92977f9 commit 402d742

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nipype/pipeline/engine.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,6 +1397,9 @@ def run(self, updatehash=False):
13971397
'but the path seems empty. Is it an NFS mount?. '
13981398
'Passing the exception.') % outdir)
13991399
pass
1400+
elif ((ex.errno == errno.ENOTEMPTY) and (len(outdircont) != 0)):
1401+
logger.debug(('Folder is not empty (%d items): '
1402+
'%s') % (len(outdircont), outdircont))
14001403
raise ex
14011404

14021405
else:

0 commit comments

Comments
 (0)