diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index d34368a74d..b79dd0f66f 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -629,7 +629,7 @@ _onClickDownloadSelected: function(event) { var files; var dir = this.getCurrentDirectory(); - if (this.isAllSelected()) { + if (this.isAllSelected() && this.getSelectedFiles().length > 1) { files = OC.basename(dir); dir = OC.dirname(dir) || '/'; }