File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
nipype/interfaces/utility Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,8 @@ class RenameInputSpec(DynamicTraitedSpec):
213
213
"replacement inputs" )
214
214
use_fullpath = traits .Bool (
215
215
False , usedefault = True , desc = "Use full path as input to regex parser" )
216
+ copy = traits .Bool (False , usedefault = True , desc = "Whether to copy the file "
217
+ "(True) or try to symlink it (False)" )
216
218
217
219
218
220
class RenameOutputSpec (TraitedSpec ):
@@ -301,7 +303,7 @@ def _rename(self):
301
303
def _run_interface (self , runtime ):
302
304
runtime .returncode = 0
303
305
out_file = os .path .join (runtime .cwd , self ._rename ())
304
- _ = copyfile (self .inputs .in_file , out_file )
306
+ _ = copyfile (self .inputs .in_file , out_file , copy = self . inputs . copy )
305
307
self ._results ['out_file' ] = out_file
306
308
return runtime
307
309
You can’t perform that action at this time.
0 commit comments