(path)
| 26 | return memoryProvider.exists(sp(path)); |
| 27 | }, |
| 28 | async stat(path) { |
| 29 | const st = await memoryProvider.stat(sp(path)); |
| 30 | return { |
| 31 | isFile: st.isFile(), |
| 32 | isDirectory: st.isDirectory(), |
| 33 | size: st.size, |
| 34 | mtime: new Date(st.mtimeMs).toISOString(), |
| 35 | birthtime: new Date(st.birthtimeMs).toISOString(), |
| 36 | }; |
| 37 | }, |
| 38 | async mkdir(path, recursive, mode) { |
| 39 | await memoryProvider.mkdir(sp(path), { recursive, mode }); |
| 40 | }, |