@did-space/fs-driver 0.2.115 → 0.2.117

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -143,6 +143,9 @@ class FsSpaceOperator {
143
143
  lists(options) {
144
144
  return __awaiter(this, void 0, void 0, function* () {
145
145
  const path = (0, path_1.join)(this.options.root, options.key);
146
+ if (!(yield this.existsAsOwner(options.key))) {
147
+ return [];
148
+ }
146
149
  // 以 非递归的方式 && 显示文件夹 的方式列出当前文件
147
150
  if (!options.recursive) {
148
151
  const objectNames = fs_extra_1.default.readdirSync(path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@did-space/fs-driver",
3
- "version": "0.2.115",
3
+ "version": "0.2.117",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,7 +32,7 @@
32
32
  ]
33
33
  },
34
34
  "dependencies": {
35
- "@did-space/core": "0.2.115",
35
+ "@did-space/core": "0.2.117",
36
36
  "filehound": "^1.17.6",
37
37
  "fs-extra": "^10.1.0",
38
38
  "hasha": "^5.2.2",
@@ -55,5 +55,5 @@
55
55
  "ts-jest": "^28.0.6",
56
56
  "typescript": "^4.9.5"
57
57
  },
58
- "gitHead": "6dcc6f1f62f7ad5e91badd1f0123aef2c22bfb93"
58
+ "gitHead": "7f3de10d1715d6dba780f616b7d1234f65bb449b"
59
59
  }