rustwasm/binary-install

Why rename failed?

robincodex opened this issue Β· 0 comments

πŸ› Bug description

This bug happened in

fs::rename(&temp, &destination)?;

Error Access is denied. (os error 5) occurs when call fs::rename.

I have tested that fs::rename can be renamed correctly in my program, but there are permissions problems in binary-install.
I just learned rust and don’t know how to solve this bug.

πŸ€” Expected Behavior

Rename successfully.

πŸ‘Ÿ Steps to reproduce

cloudflare/wrangler-legacy#1504 (comment)

🌍 Your environment

OS: Windows 10 v2004
binary-install version: 0.0.3-alpha.1
rustc version: rustc 1.46.0 (04488afe3 2020-08-24)