-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy .git
dir to network device failed
#1703
Comments
Does it work if you call |
Not work. Same |
Does it need a different API for copying network files - I'm not familiar with that Also, what if you're running with root permissions? |
I don't think there is a different API for network device, since other files is successfully copied.
I run Update: I use xcp to copy file, and it worked. |
That's weird, I'm not sure how to fix it since what Yazi does is just call This might be a Rust bug, have you tried the |
I tested |
Since this issue is not related to yazi, I'll close this issue. |
FYI there's a related issue #1775 |
Glad to see this fix, but I think fix it in yazi is a little bit weird. Can you make a PR to Rust and we can still use |
It's hard for me to say Rust would accept this because failing to copy files when permissions can't be set seems like a deliberate choice. From Rust's perspective, copying a file must succeed in both permissions and content to be considered successful, even if the target filesystem doesn't support setting permissions. However, this clearly contradicts our practical experience, where we hope at least the file content can be copied successfully, even if setting permissions fails. |
Make sense to me, thanks! |
I'm going to lock this issue because it has been closed for 30 days. ⏳ |
What system are you running Yazi on?
Linux Wayland
What terminal are you running Yazi in?
kitty 0.36.4
yazi --debug
outputDid you try the latest nightly build to see if the problem got fixed?
Yes, and I updated the debug information above (
yazi --debug
) to the nightly that I triedDescribe the bug
I copied a git repository dir to a samba device, and yazi got stucked, it says permission denied. I canceled the task, then tried to delete the dir, yazi got stuck again, also says permission denied.
Minimal reproducer
Download the zip file and unzip, copy the file to a samba device.
pack.zip
Anything else?
I tried 3 times use yazi, all failed. Finally, I use dolphin to make things done.
The text was updated successfully, but these errors were encountered: