We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40b2cb8 commit 2b0aef8Copy full SHA for 2b0aef8
nipype/utils/filemanip.py
@@ -42,7 +42,9 @@ def nipype_hardlink_wrapper(raw_src, raw_dst):
42
If the hardlink fails, then fall back to using
43
a standard copy.
44
"""
45
- src = os.path.normpath(raw_src)
+ # Use realpath to avoid hardlinking symlinks
46
+ src = os.path.realpath(raw_src)
47
+ # Use normpath, in case destination is a symlink
48
dst = os.path.normpath(raw_dst)
49
del raw_src
50
del raw_dst
0 commit comments