mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 11:21:08 -10:00
Try to fix Directory.EnumerateFiles for hidden files
This commit is contained in:
1 parent
1fd51d3e03
commit
e09e64bead
1 file changed
+6
@@ -547,6 +547,12 @@ namespace System.IO
|
||||
throw MonoIO.GetException (Path.GetDirectoryName (Path.Combine (path, searchPattern)), (MonoIOError) error);
|
||||
|
||||
try {
|
||||
//
|
||||
// Convert any file specific flag to FileAttributes.Normal which is used as include files flag
|
||||
//
|
||||
if (((rattr & FileAttributes.Directory) == 0) && rattr != 0)
|
||||
rattr |= FileAttributes.Normal;
|
||||
|
||||
bool first = true;
|
||||
if (((rattr & FileAttributes.ReparsePoint) == 0) && ((rattr & kind) != 0))
|
||||
yield return s;
|
||||
|
||||
Reference in new issue
Block a user