at the moment the process for checking if a file or folder is accessible involves enumerating the folders contents/reading the file, and then catching the exception if system object is inaccessible. this results in a huge performance decrease due to
exception being thrown
enumerating contents (sys object acc is checked while enumerating path, which results in multiple iterations of enumeration)
at the moment the process for checking if a file or folder is accessible involves enumerating the folders contents/reading the file, and then catching the exception if system object is inaccessible. this results in a huge performance decrease due to
a possible solution is using GetAccessControl as show here: How do you check for permissions to write to a directory or file?
Project: Common File: IoHelper.cs Method: IsSystemObjectAccessable(string path)