浏览代码

Fix download in sub-paths

Steven Silvester 8 年之前
父节点
当前提交
f4bad532e3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/filebrowser/listing.ts

+ 1 - 1
src/filebrowser/listing.ts

@@ -405,7 +405,7 @@ class DirListing extends Widget {
   download(): Promise<IContents.IModel> {
     for (let item of this._getSelectedItems()) {
       if (item.type !== 'directory') {
-        return this._model.download(item.path).catch(error =>
+        return this._model.download(item.name).catch(error =>
           utils.showErrorMessage(this, 'Download file', error)
         );
       }