(path: string)
| 21 | unlinked, |
| 22 | dirs, |
| 23 | async readFile(path: string) { |
| 24 | const content = store.get(toUnixPath(path)); |
| 25 | if (content == null) { |
| 26 | throw new Error(`ENOENT: no such file or directory, open '${path}'`); |
| 27 | } |
| 28 | return content; |
| 29 | }, |
| 30 | async writeFile(path: string, content: string) { |
| 31 | if (options.failOnWrite === toUnixPath(path)) { |
| 32 | throw new Error(`EACCES: permission denied, open '${path}'`); |
no test coverage detected