(cb: (name: string, objs: FileSystem[]) => void)
| 3 | import InMemoryFileSystem from '../../../src/backend/InMemory'; |
| 4 | |
| 5 | export default function MFSFactory(cb: (name: string, objs: FileSystem[]) => void) { |
| 6 | if (MountableFileSystem.isAvailable()) { |
| 7 | MountableFileSystem.Create({ |
| 8 | '/test': new InMemoryFileSystem(), |
| 9 | '/tmp': new InMemoryFileSystem() |
| 10 | }, (e, fs?) => { |
| 11 | if (e) { |
| 12 | throw e; |
| 13 | } |
| 14 | cb('MountableFileSystem', [fs]); |
| 15 | }); |
| 16 | } else { |
| 17 | cb('MountableFileSystem', []); |
| 18 | } |
| 19 | } |
nothing calls this directly
no test coverage detected