-
-
Notifications
You must be signed in to change notification settings - Fork 17.2k
fs::copy fails copying '.git' dir from Linux to Windows(SMB) #131026
Copy link
Copy link
Closed as not planned
Labels
C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.O-windowsOperating system: WindowsOperating system: WindowsT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Description
Activity
Metadata
Metadata
Assignees
Labels
C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.O-windowsOperating system: WindowsOperating system: WindowsT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
I tried to copy a git repository from Linux host to Windows host using
yazi. And I noticed that there are some files in.gitdir are copied failed. The error ispermission denied. I reported toyazi(see sxyazi/yazi#1703). But it seemsyazijust call thestd::fs::copyto copy files. And I tried the following code:I expected to see this happen:
File
pack-d2e6xxxc2.idxis copied to Windows directory.Instead, this happened:
Error: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }Meta
rustc --version --verbose:Backtrace