Skip to content

Commit d0a7792

Browse files
committed
ENH: Add config option to disable symlinks
1 parent 3107a6d commit d0a7792

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

nipype/utils/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
remove_node_directories = false
5555
remove_unnecessary_outputs = true
5656
try_hard_link_datasink = true
57+
disable_symbolic_links = false
5758
single_thread_matlab = true
5859
crashfile_format = pklz
5960
stop_on_first_crash = false

nipype/utils/filemanip.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ def copyfile(originalfile, newfile, copy=False, create_new=False,
288288
if hashmethod is None:
289289
hashmethod = config.get('execution', 'hash_method').lower()
290290

291+
if config.getboolean('execution', 'disable_symbolic_links'):
292+
copy = True
293+
291294
# Existing file
292295
# -------------
293296
# Options:

0 commit comments

Comments
 (0)