Function
readFileSync
(path: string, options?: ReadFileOptions)
Source from the content-addressed store, hash-verified
| 96 | cur = parentDir(cur); |
| 97 | } |
| 98 | if (!dirs.has(cur) && !createIntermediates) return false; |
| 99 | if (!createIntermediates && parentDir(p) !== cur) return false; |
| 100 | |
| 101 | // create parents if requested/needed |
| 102 | while (chain.length) { |
| 103 | const d = chain.pop()!; |
| 104 | dirs.add(d); |
| 105 | } |
| 106 | return true; |
| 107 | }, |
| 108 | |
| 109 | readFileSync(path: string, options?: ReadFileOptions): string | ArrayBuffer { |
| 110 | const p = norm(path); |
Tested by
no test coverage detected