We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97fa781 commit 0cf6e5aCopy full SHA for 0cf6e5a
src/Files.App/Utils/Archives/DecompressHelper.cs
@@ -287,7 +287,14 @@ private static async Task<bool> IsMultipleItems(BaseStorageFile archive)
287
if (zipFile is null)
288
return true;
289
290
- return zipFile.ArchiveFileData.Count > 1;
+ return zipFile.ArchiveFileData.Select(file =>
291
+ {
292
+ var pathCharIndex = file.FileName.IndexOfAny(['/', '\\']);
293
+ if (pathCharIndex == -1)
294
+ return file.FileName;
295
+ else
296
+ return file.FileName.Substring(0, pathCharIndex);
297
+ }).Distinct().Count() > 1;
298
}
299
300
0 commit comments