Support more tar and zip formats
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user