Program abortion upon inaccessible directories and junctions #156

Closed
opened 2026-01-29 21:06:33 +00:00 by claunia · 1 comment
Owner

Originally created by @Feathered-Serpent on GitHub (Jul 5, 2023).

Upon trying to let a whole disk drive being scanned (e.g. where one might install games), BurnOutSharp first stops at this:
System.UnauthorizedAccessException: Access to the path 'C:\System Volume Information' is denied.

Probably because the directory is owned from the Windows System account. But it's not only permissions who stop the program:
System.UnauthorizedAccessException: Access to the path 'C:\Program Files\Gemeinsame Dateien' is denied.

This is a junction to another directory:
<JUNCTION> Gemeinsame Dateien [C:\Program Files\Common Files]

So how can I make the program just skip over these entries?

Originally created by @Feathered-Serpent on GitHub (Jul 5, 2023). Upon trying to let a whole disk drive being scanned (e.g. where one might install games), BurnOutSharp first stops at this: `System.UnauthorizedAccessException: Access to the path 'C:\System Volume Information' is denied.` Probably because the directory is owned from the Windows System account. But it's not only permissions who stop the program: `System.UnauthorizedAccessException: Access to the path 'C:\Program Files\Gemeinsame Dateien' is denied.` This is a junction to another directory: `<JUNCTION> Gemeinsame Dateien [C:\Program Files\Common Files]` So how can I make the program just skip over these entries?
Author
Owner

@mnadareski commented on GitHub (Oct 23, 2024):

Current SafeEnumerate methods are the best we can do at this point.

@mnadareski commented on GitHub (Oct 23, 2024): Current `SafeEnumerate` methods are the best we can do at this point.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SabreTools/BinaryObjectScanner#156