You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
We no longer have os::copy_file, and as @cmr asks, I think this just works now. @dpc if you think this is still an issue, please reproduce and let us know :)
Activity
hatahet commentedon Oct 20, 2013
Does this happen on *nix, Windows, or either?
hatahet commentedon Oct 20, 2013
Also seems to fail if the source and destination files are the same. The resulting file is empty.
hatahet commentedon Oct 20, 2013
#9958
dpc commentedon Oct 24, 2013
I've tested this on Linux.
Modifications to os::copy_file()
emberian commentedon Apr 7, 2014
std::io::fs::open
appears to not does this? #10175 modified some behavior around this. @dpc can you try and reproduce on master?steveklabnik commentedon Jan 23, 2015
We no longer have
os::copy_file
, and as @cmr asks, I think this just works now. @dpc if you think this is still an issue, please reproduce and let us know :)Auto merge of rust-lang#10109 - Niki4tap:yeet_not_return, r=flip1995