UNPKG

@zenfs/core

Version:

A filesystem, anywhere

9 lines (5 loc) 209 B
import { fs as _fs, bindContext } from '@zenfs/core'; import { copySync, data } from '../setup.js'; _fs.mkdirSync('/new_root'); export const { fs } = bindContext({ root: '/new_root' }); copySync(data, fs);