Skip to content

Commit f6198ee

Browse files
STY: Further simplification
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 0cd125d commit f6198ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/engine/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,7 @@ def clean_working_directory(
14831483
if str2bool(config["execution"]["remove_unnecessary_outputs"]):
14841484
for f in walk_files(cwd):
14851485
if f not in needed_files:
1486-
if not needed_dirs:
1486+
if not f.startswith(tuple(needed_dirs)):
14871487
files2remove.append(f)
14881488
elif not any(f.startswith(dname) for dname in needed_dirs):
14891489
files2remove.append(f)

0 commit comments

Comments
 (0)