Commit | Line | Data |
---|---|---|
4f79ca9a FF |
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 | |
38c333e0 FF |
8 | -from os import link, symlink, getcwd, listdir, stat |
9 | +from os import symlink, getcwd, listdir, stat | |
4f79ca9a FF |
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) | |
38c333e0 | 16 | try: |
4f79ca9a FF |
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 @@ | |
38c333e0 FF |
23 | else: |
24 | if not exists(target_path) \ | |
4f79ca9a | 25 | or stat(source_path).st_ino != stat(target_path).st_ino: |
38c333e0 FF |
26 | - link(source_path, |
27 | + symlink(source_path, | |
4f79ca9a | 28 | next_available_filename(target_path)) |
38c333e0 FF |
29 | |
30 | def paste(self, overwrite=False, append=False): |