-
Notifications
You must be signed in to change notification settings - Fork 13.4k
os::copy_file
does not clean after failure.
#9947
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
Comments
Does this happen on *nix, Windows, or either? |
Also seems to fail if the source and destination files are the same. The resulting file is empty. |
I've tested this on Linux. |
hatahet
added a commit
to hatahet/rust
that referenced
this issue
Oct 30, 2013
* Returns `false` if destination exists. * Returns `false` if source is not a file (e.g. dir, sym link, etc.). cc rust-lang#9947
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Dec 29, 2022
Fix FP in needless_return when using yeet Fixes rust-lang#9947 changelog: Fix: [`needless_return`]: don't lint when using `do yeet` rust-lang#10109
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you eg. give
os::copy_file
source argument that is a directory it will leave an empty destination file. I belive this is not good, and may lead to terrible, hard to debug bugs in software using it.The text was updated successfully, but these errors were encountered: