CrapFixer icon indicating copy to clipboard operation
CrapFixer copied to clipboard

error deleting directory and could not find a part of the path

Open bakomox opened this issue 1 year ago • 2 comments

hello im getting this errors when im running the basic disk cleanup

here are example errors but the cleanup continues and works

Error deleting directory C:\Users\mox\AppData\Local\Temp\WinGet\cache\V2_PVD\Microsoft.Winget.Source_8wekyb3d8bbwe\packages\Transmission.Transmission\0b2fd90d: Could not find a part of the path 'C:\Users\mox\AppData\Local\Temp\WinGet\cache\V2_PVD\Microsoft.Winget.Source_8wekyb3d8bbwe\packages\Transmission.Transmission\0b2fd90d'. Error deleting directory C:\Users\mox\AppData\Local\Temp\WinGet\cache\V2_PVD\Microsoft.Winget.Source_8wekyb3d8bbwe\packages\Valve.Steam\91b29710: Could not find a part of the path 'C:\Users\mox\AppData\Local\Temp\WinGet\cache\V2_PVD\Microsoft.Winget.Source_8wekyb3d8bbwe\packages\Valve.Steam\91b29710'.

bakomox avatar Jul 12 '25 23:07 bakomox

Chiming in with my experience to help the devs with troubleshooting. TLDR: Running CrapFixer.exe as administrator might have fixed the issue, but I'm not sure.

I got the same kind of errors when I ran CrapFixer 1.30. At first it seemed to be working, but then for about 10-20 minutes I got an endless stream of these errors: Image

As a sanity check, I opened up C:\Users\kevin\AppData\Local\Temp\ to see if these folders even exist on my computer. They don't. At least not the ones I checked. For example, CrapFixer tried to delete C\Users\kevin\AppData\Local\Temp\ywwggexr.qmt\Assets, but I don't even have the parent folder C\Users\kevin\AppData\Local\Temp\ywwggexr.qmt\ in the first place.

When CrapFixer was finished, I copied the log into the CrapFixer Log Analyzer as recommended. It tipped me off that I might need admin privileges for this to work properly. So I closed CrapFixer and re-opened it as administrator. I ran it again with all the same check boxes selected. This time it finished crazy fast. I still had a few errors of the same kind, but about 1% as many this time. I didn't see any indication that it attempted to delete the folders that it had issues with the first time.

So I'm not sure if running as admin fixed the Error deleting directory issue or if something else happened. Either way I'm happy enough. I was mainly using CrapFixer for all the other features.

kevin-d-omara avatar Jan 09 '26 20:01 kevin-d-omara

this issue refers to the old 1.30 codebase.

CrapFixer 2.0 was rebuilt from scratch and works differently in many areas. please update and test again. if the problem still exists, feel free to open a new issue. closing this one as legacy.

Belim avatar Aug 28 '26 18:08 Belim