| 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 |
| 4 | @@ -7,7 +7,7 @@ |
| 5 | |
| 6 | import codecs |
| 7 | import os |
| 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 |
| 11 | import re |
| 12 | import shlex |
| 13 | @@ -1383,7 +1383,7 @@ |
| 14 | for fobj in self.copy_buffer: |
| 15 | new_name = next_available_filename(fobj.basename) |
| 16 | try: |
| 17 | - link(fobj.path, join(getcwd(), new_name)) |
| 18 | + symlink(fobj.path, join(getcwd(), new_name)) |
| 19 | except OSError as ex: |
| 20 | self.notify('Failed to paste hardlink: View log for more info', |
| 21 | bad=True, exception=ex) |
| 22 | @@ -1408,7 +1408,7 @@ |
| 23 | else: |
| 24 | if not exists(target_path) \ |
| 25 | or stat(source_path).st_ino != stat(target_path).st_ino: |
| 26 | - link(source_path, |
| 27 | + symlink(source_path, |
| 28 | next_available_filename(target_path)) |
| 29 | |
| 30 | def paste(self, overwrite=False, append=False): |