remove_dir_all icon indicating copy to clipboard operation
remove_dir_all copied to clipboard

In version 0.8, directories cannot be deleted in some cases

Open FirTech opened this issue 1 year ago • 1 comments

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?

FirTech avatar Aug 27 '24 06:08 FirTech

What OS? Can you get a OS trace of the failure, or provide some instruction on how to reproduce it?

rbtcollins avatar Nov 22 '24 17:11 rbtcollins

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." }

FirTech avatar Jun 22 '25 05:06 FirTech

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

FirTech avatar Jun 22 '25 05:06 FirTech