Enable download for directories
downloads as zip
This commit is contained in:
@@ -156,8 +156,6 @@ app.controller('FileManagerController', ['$scope', '$translate', '$timeout', 'Cl
|
||||
function download(entry) {
|
||||
var filePath = sanitize($scope.cwd + '/' + entry.fileName);
|
||||
|
||||
if (entry.isDirectory) return;
|
||||
|
||||
Client.filesGet($scope.id, $scope.type, filePath, 'download', function (error) {
|
||||
if (error) return Client.error(error);
|
||||
});
|
||||
@@ -747,7 +745,6 @@ app.controller('FileManagerController', ['$scope', '$translate', '$timeout', 'Cl
|
||||
click: function ($itemScope, $event, entry) { extract(entry); }
|
||||
}, {
|
||||
text: tr['filemanager.list.menu.download'],
|
||||
displayed: function ($itemScope, $event, entry) { return !entry.isDirectory; },
|
||||
click: function ($itemScope, $event, entry) { download(entry); }
|
||||
}, {
|
||||
text: tr['filemanager.list.menu.delete'],
|
||||
|
||||
Reference in New Issue
Block a user