| ... | ... | @@ -761,8 +761,11 @@ const FileType = enum { |
| 761 | 761 | |
| 762 | 762 | fn fromPath(file_path: []const u8) ?FileType { |
| 763 | 763 | if (ascii.endsWithIgnoreCase(file_path, ".tar")) return .tar; |
| 764 | if (ascii.endsWithIgnoreCase(file_path, ".tgz")) return .@"tar.gz"; |
| 764 | 765 | if (ascii.endsWithIgnoreCase(file_path, ".tar.gz")) return .@"tar.gz"; |
| 766 | if (ascii.endsWithIgnoreCase(file_path, ".txz")) return .@"tar.xz"; |
| 765 | 767 | if (ascii.endsWithIgnoreCase(file_path, ".tar.xz")) return .@"tar.xz"; |
| 768 | if (ascii.endsWithIgnoreCase(file_path, ".tzst")) return .@"tar.zst"; |
| 766 | 769 | if (ascii.endsWithIgnoreCase(file_path, ".tar.zst")) return .@"tar.zst"; |
| 767 | 770 | return null; |
| 768 | 771 | } |