In version 0.8, directories cannot be deleted in some cases
I upgraded from version 0.7 to version 0.8, and in some cases I was unable to delete directories. It returned: os error 5, which may be due to lack of permission. However, I tried to delete the directory manually and it worked fine. Rolling back the version to 0.7 also worked fine. Why is this?
What OS? Can you get a OS trace of the failure, or provide some instruction on how to reproduce it?
Sorry for the late reply. It works fine in a normal system environment, but the directory cannot be deleted using WindowsPE environment. The error message is as follows:
thread 'main' panicked at src\main.rs:83:37:
called Result::unwrap() on an Err value: Os { code: 5, kind: PermissionDenied, message: "Access denied." }
I tried to use the std::fs::create_dir_all() function and it also showed this error: called Result::unwrap() on an Err value: Os { code: 5, kind: PermissionDenied, message: "Access denied." }
But it is strange that the 0.7 version can delete