Skip to content

Commit 5244e61

Browse files
committed
UnauthorizedAccessException is omitted when browsing system-protected directories
1 parent d1120a4 commit 5244e61

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Plugins/SimpleFileBrowser/Scripts/FileBrowserHelpers.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,13 @@ public static FileSystemEntry[] GetEntriesInDirectory( string path, bool extract
242242

243243
return result;
244244
}
245+
catch( System.UnauthorizedAccessException ) { }
245246
catch( System.Exception e )
246247
{
247248
Debug.LogException( e );
248-
return null;
249249
}
250+
251+
return null;
250252
}
251253

252254
public static string CreateFileInDirectory( string directoryPath, string filename )

0 commit comments

Comments
 (0)