(path)
| 88 | }; |
| 89 | }, |
| 90 | async readEntry(path) { |
| 91 | const entry = files.get(path); |
| 92 | if (entry === undefined) return null; |
| 93 | return { |
| 94 | kind: "file", |
| 95 | rev: 0, |
| 96 | path, |
| 97 | mode: entry.mode, |
| 98 | mtime: entry.mtime, |
| 99 | size: entry.size, |
| 100 | chunks: entry.chunks, |
| 101 | }; |
| 102 | }, |
| 103 | async hasObjects(hashes) { |
| 104 | return hashes.filter((h) => blobs.has(hex(h))); |
| 105 | }, |