Skip to content

Commit b8d29a9

Browse files
committed
Revert "Add "copy" trait to Rename, to allow copying instead of symlink"
This reverts commit ee88157.
1 parent ee88157 commit b8d29a9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

nipype/interfaces/utility/base.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,6 @@ class RenameInputSpec(DynamicTraitedSpec):
213213
"replacement inputs")
214214
use_fullpath = traits.Bool(
215215
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)")
218216

219217

220218
class RenameOutputSpec(TraitedSpec):
@@ -303,7 +301,7 @@ def _rename(self):
303301
def _run_interface(self, runtime):
304302
runtime.returncode = 0
305303
out_file = os.path.join(runtime.cwd, self._rename())
306-
_ = copyfile(self.inputs.in_file, out_file, copy=self.inputs.copy)
304+
_ = copyfile(self.inputs.in_file, out_file)
307305
self._results['out_file'] = out_file
308306
return runtime
309307

0 commit comments

Comments
 (0)