Skip to content

Commit 4dcd5e1

Browse files
authored
Feature: Auto mount ISO files (#12116)
1 parent a117ff3 commit 4dcd5e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Files.Backend/Helpers/FileExtensionHelpers.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static bool IsPowerShellFile(string fileExtensionToCheck)
4444
/// <returns><c>true</c> if the fileExtensionToCheck is a zip bundle file;
4545
/// otherwise <c>false</c>.</returns>
4646
public static bool IsZipFile(string? fileExtensionToCheck)
47-
=> HasExtension(fileExtensionToCheck, ".zip", ".msix", ".appx", ".msixbundle", ".7z", ".rar", ".tar", ".iso");
47+
=> HasExtension(fileExtensionToCheck, ".zip", ".msix", ".appx", ".msixbundle", ".7z", ".rar", ".tar");
4848

4949
public static bool IsBrowsableZipFile(string? filePath, out string? ext)
5050
{
@@ -54,7 +54,7 @@ public static bool IsBrowsableZipFile(string? filePath, out string? ext)
5454
return false;
5555
}
5656

57-
ext = new[] { ".zip", ".7z", ".rar", ".tar" , ".iso"} // Only ext we want to browse
57+
ext = new[] { ".zip", ".7z", ".rar", ".tar"} // Only extensions we want to browse
5858
.FirstOrDefault(x => filePath.Contains(x, StringComparison.OrdinalIgnoreCase));
5959
return ext is not null;
6060
}

0 commit comments

Comments
 (0)