Sunflower icon indicating copy to clipboard operation
Sunflower copied to clipboard

copying destroys symbolic links

Open nbbn opened this issue 8 years ago • 7 comments

Hello, Moving (ctrl-x, ctrl-v and F6) destroys symbolic links inside moved folder. Instead of links there is a copy of files. Links are preserved in Nautilus or even mv command. I didn't find any config option for that behaviour. UPDATE: next comment explain that I have issue with copying.

nbbn avatar Mar 20 '16 12:03 nbbn

How are they preserved? Do links point to original paths?

MeanEYE avatar Mar 28 '16 23:03 MeanEYE

Ok, now I checked it again and I see issue with copying. I'm sorry.

I will show you example, as you can see, after mv link is still a link

$ mkdir test_dir
$ touch test_file
$ ln -s /home/n/test_file test_dir/
$ ls test_dir/ -la
lrwxrwxrwx 1 n n   18 mar 29 01:39 test_file -> /home/n/test_file
$ cp -r test_dir test_dir2
$ ls test_dir2/ -la
lrwxrwxrwx 1 n n   18 mar 29 01:39 test_file -> /home/n/test_file

now, when you copy/move the test_dir2 (that has link inside) in sunflower, you will lose link:

$ ls new_place/test_dir2/ -la
-rwxrwxrwx 1 js js   0 mar 29 01:39 test_file*

In copy dialog box there is switch "follow symlinks" but it doesn't change anything.

nbbn avatar Mar 28 '16 23:03 nbbn

Thank you. I'll see where the problem lies in. Can you say what would be expected behavior for you?

MeanEYE avatar Apr 01 '16 06:04 MeanEYE

Expected behaviour should be the same like behaviour of cp, link should be still a link:

$ ls test_dir2/ -la
lrwxrwxrwx 1 n n   18 mar 29 01:39 test_file -> /home/n/test_file

nbbn avatar Apr 01 '16 16:04 nbbn

Pointing to the original link location? On Apr 1, 2016 7:06 PM, "Jakub Stepniak" [email protected] wrote:

Expected behaviour should be the same like behaviour of cp, link should be still a link:

$ ls test_dir2/ -la lrwxrwxrwx 1 n n 18 mar 29 01:39 test_file -> /home/n/test_file

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/MeanEYE/Sunflower/issues/210#issuecomment-204451764

MeanEYE avatar Apr 01 '16 17:04 MeanEYE

Is there a way to vote for an issue? This seems pretty important to me.

MikeWallaceDev avatar Apr 01 '16 17:04 MikeWallaceDev

As far as I know there's no way of upvoting issues but I know this is important one to fix. I just need to know what is the expected behavior.

MeanEYE avatar Apr 01 '16 18:04 MeanEYE