(root: string, file: string)
| 30 | // NOTE: only the 6 methods below are intercepted. If Storage starts using a different |
| 31 | // FSUtil method that touches Global.Path.data, add it here. |
| 32 | function remap(root: string, file: string) { |
| 33 | if (file === Global.Path.data) return root |
| 34 | if (file.startsWith(Global.Path.data + path.sep)) return path.join(root, path.relative(Global.Path.data, file)) |
| 35 | return file |
| 36 | } |
| 37 | |
| 38 | function remappedFs(root: string) { |
| 39 | return Layer.effect( |