Skip to content

Commit e710338

Browse files
authored
Fix: Fixed issue where the right click menu didn't load properly in folders that have archive extensions (#11248)
1 parent aa9cbcd commit e710338

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Files.App/Filesystem/StorageItems/ZipStorageFolder.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ public static bool IsZipPath(string path, bool includeRoot = true)
7070
return false;
7171
}
7272
marker += ext.Length;
73-
return (marker == path.Length && includeRoot) || (marker < path.Length && path[marker] is '\\');
73+
// If IO.Path.Exists returns true, it is not a zip path but a normal directory path that contains ".zip".
74+
return (marker == path.Length && includeRoot && !IO.Path.Exists(path + "\\"))
75+
|| (marker < path.Length && path[marker] is '\\' && !IO.Path.Exists(path));
7476
}
7577

7678
public async Task<long> GetUncompressedSize()

0 commit comments

Comments
 (0)