Dillonb / nmuidi

Deletes stuff, hopefully quickly
https://crates.io/crates/nmuidi
MIT License
226 stars 17 forks source link

NMUIDI throws me error messages when deleting on Windows 10 #15

Closed blaziter closed 3 months ago

blaziter commented 3 months ago

📝 Description

When I use nmuidi it throws me error messages when deleting but folders and files are deleted without a problem.

OS Windows 10 Pro 22H2
Build 19045.4412
RAM 32 GB

cmd example

nmuidi node_modules\
 Cleaning node_modules\
 ERROR nmuidi::nmuidi > Failed to remove file node_modules\...\trace-mapping: Access is denied. (os error 5)

Example

image

brasky commented 3 months ago

@blaziter This could be a few issues. It could be antivirus like Windows Defender or a third party one, you can try this to see if that's the issue.

It could also be that those files are still in use, I'm pretty sure Windows will sometimes give you this error in that case. If you run into this issue you can run Handle and look to see if there is a process holding a lock on one of those files.