diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 58c07c60f97b..38b9007d0bc7 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -661,7 +661,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) || '/'; }