diff --git a/src/Files.App/Filesystem/StorageItems/ZipStorageFolder.cs b/src/Files.App/Filesystem/StorageItems/ZipStorageFolder.cs index 5720af693c42..e81e7ca18ff5 100644 --- a/src/Files.App/Filesystem/StorageItems/ZipStorageFolder.cs +++ b/src/Files.App/Filesystem/StorageItems/ZipStorageFolder.cs @@ -70,7 +70,9 @@ public static bool IsZipPath(string path, bool includeRoot = true) return false; } marker += ext.Length; - return (marker == path.Length && includeRoot) || (marker < path.Length && path[marker] is '\\'); + // If IO.Path.Exists returns true, it is not a zip path but a normal directory path that contains ".zip". + return (marker == path.Length && includeRoot && !IO.Path.Exists(path + "\\")) + || (marker < path.Length && path[marker] is '\\' && !IO.Path.Exists(path)); } public async Task GetUncompressedSize()