-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-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
Location
std::fs::copy
Summary
fs::copy
, when being called with a symlink as from
, does not copy the symlink itself but dereferences it and copies the file behind the symlink. The Rust docs do not really mention this, even if it discoverable that this is the behaviour as the docs mentions not being able to copy symlinks to directories. I think explicitly mentioning this, however, would be a nice addition.
edwloef
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-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.