Support more tar and zip formats

This commit is contained in:
Johannes Zellner
2020-10-20 12:31:48 +02:00
parent c7c16ee167
commit 660b92cd3b

View File

@@ -83,7 +83,13 @@ app.controller('FileManagerController', ['$scope', '$timeout', 'Client', functio
];
function isArchive(f) {
return f.match(/\.tar\.gz$/) || f.match(/\.tgz$/) || f.match(/\.zip$/);
return f.match(/\.tgz$/)
|| f.match(/\.tar$/)
|| f.match(/\.7z$/)
|| f.match(/\.zip$/)
|| f.match(/\.tar\.gz$/)
|| f.match(/\.tar\.xz$/)
|| f.match(/\.tar\.bz2$/);
}
$scope.menuOptions = [