Skip to content

Commit bccb8cf

Browse files
committed
Another try to fix the issue.
1 parent 4aed86a commit bccb8cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Hexa.NET.ImGui.Widgets/Dialogs/FileUtilities.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ public static IEnumerable<FileMetadata> EnumerateEntriesOSX(string path, string
789789
{
790790
if (!dirEnt.ShouldIgnore(pattern, out var ignore))
791791
{
792-
var meta = Convert(dirEnt, dir);
792+
var meta = OSXConvert(dirEnt, dir);
793793
if ((meta.Attributes & FileAttributes.Directory) != 0 && option == SearchOption.AllDirectories)
794794
{
795795
walkStack.Push(meta.Path.ToUTF8String());
@@ -815,9 +815,9 @@ private static nint OSXOpenDir(StdString str)
815815
return OSXOpenDir(str.Data);
816816
}
817817

818-
private static bool OSXTryReadDir(nint dirHandle, out DirEnt dirEnt)
818+
private static bool OSXTryReadDir(nint dirHandle, out OSXDirEnt dirEnt)
819819
{
820-
var entry = ReadDir(dirHandle);
820+
var entry = OSXReadDir(dirHandle);
821821
if (entry == null)
822822
{
823823
dirEnt = default;
@@ -827,7 +827,7 @@ private static bool OSXTryReadDir(nint dirHandle, out DirEnt dirEnt)
827827
return true;
828828
}
829829

830-
private static FileMetadata OSXConvert(DirEnt entry, StdString path)
830+
private static FileMetadata OSXConvert(OSXDirEnt entry, StdString path)
831831
{
832832
int length = NET.Utilities.Utils.StrLen(entry.d_name);
833833
StdWString str = new(path.Size + length);

0 commit comments

Comments
 (0)