diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index c52e414e3a..1a04512323 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -327,7 +327,7 @@ // and contain existing models that can be used. // This method would in the future simply retrieve the matching model from the collection. var model = new OCA.Files.FileInfoModel(this.elementToFile($tr)); - if (!model.has('path')) { + if (!model.get('path')) { model.set('path', this.getCurrentDirectory(), {silent: true}); }