This project has moved and is read-only. For the latest updates, please go here.

Report inaccessible folders and continue


Check of c:\ stops with message
Access to path 'C:\$RECYCLE.BIN\S-1-5-18' is denied.

This is a known issue. Suggestion is to report skipped folders.


deadlydog wrote Dec 16, 2015 at 5:57 AM

Hi GWS65, I tried doing this when I initially made the tool. The problem is that the Windows built-in recursive path search function just takes a root directory, and when it enumerates the child directories it will throw the security exception; so not when I'm actually trying to access the directory, but just when I'm being told of it's existence. So the solution would be for me to check what files/directories are on the hard-drive using a non-standard method. I just haven't had time to look into alternatives to System.IO.Direcotry for telling me what files/directories exist on the hard drive. I wish it would just give me back a list of files and directories and not throw the security exception until I actually tried to read or modify the contents of those directories, but that's not the case, so at the moment I'm not sure of how to get around this problem. Thanks for the suggestion though.

GWS65 wrote Dec 17, 2015 at 9:33 AM

Hello DeadlyDog,

Just a wild guess but maybe this component could help... seems to be able to do some advanced FS things.

Succes finding enough time and a solution.

deadlydog wrote Dec 17, 2015 at 4:03 PM

Cool, thanks GWS65. That project looks promising. Once I have more time I'll investigate it further and see if using that library solves this problem :)

deadlydog wrote Dec 18, 2015 at 7:14 AM

I took a look, but even with AlphaFS I was still not able to get around this issue :(