Skip to content

Commit

Permalink
Feature: Auto mount ISO files (#12116)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 authored Apr 19, 2023
1 parent a117ff3 commit 4dcd5e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Files.Backend/Helpers/FileExtensionHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static bool IsPowerShellFile(string fileExtensionToCheck)
/// <returns><c>true</c> if the fileExtensionToCheck is a zip bundle file;
/// otherwise <c>false</c>.</returns>
public static bool IsZipFile(string? fileExtensionToCheck)
=> HasExtension(fileExtensionToCheck, ".zip", ".msix", ".appx", ".msixbundle", ".7z", ".rar", ".tar", ".iso");
=> HasExtension(fileExtensionToCheck, ".zip", ".msix", ".appx", ".msixbundle", ".7z", ".rar", ".tar");

public static bool IsBrowsableZipFile(string? filePath, out string? ext)
{
Expand All @@ -54,7 +54,7 @@ public static bool IsBrowsableZipFile(string? filePath, out string? ext)
return false;
}

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

0 comments on commit 4dcd5e1

Please sign in to comment.