Skip to content

Commit bb9e578

Browse files
committed
quick and dirty symlink fix for #120
1 parent 4550275 commit bb9e578

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

heudiconv/convert.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,11 @@ def convert_dicom(item_dicoms, bids, prefix,
324324
outfile = op.join(dicomdir, op.basename(filename))
325325
if not op.islink(outfile):
326326
# TODO: add option to enable hardlink?
327-
if symlink:
328-
os.symlink(filename, outfile)
329-
else:
330-
os.link(filename, outfile)
327+
# if symlink:
328+
# os.symlink(filename, outfile)
329+
# else:
330+
# os.link(filename, outfile)
331+
shutil.copyfile(filename, outfile)
331332

332333

333334
def nipype_convert(item_dicoms, prefix, with_prov, bids, tmpdir):

0 commit comments

Comments
 (0)