1 diff -u -r ../ranger-1.9.0/ranger/core/actions.py ./ranger/core/actions.py
2 --- ../ranger-1.9.0/ranger/core/actions.py 2018-01-28 19:02:32.000000000 +0000
3 +++ ./ranger/core/actions.py 2018-01-29 09:26:24.869712282 +0000
8 -from os import link, symlink, getcwd, listdir, stat
9 +from os import symlink, getcwd, listdir, stat
10 from os.path import join, isdir, realpath, exists
14 for fobj in self.copy_buffer:
15 new_name = next_available_filename(fobj.basename)
17 - link(fobj.path, join(getcwd(), new_name))
18 + symlink(fobj.path, join(getcwd(), new_name))
20 self.notify('Failed to paste hardlink: View log for more info',
21 bad=True, exception=ex)
24 if not exists(target_path) \
25 or stat(source_path).st_ino != stat(target_path).st_ino:
27 + symlink(source_path,
28 next_available_filename(target_path))
30 def paste(self, overwrite=False, append=False):