1.1.2 • Published 2 years ago
@basicserver/fs-frontend v1.1.2
Fs-Frontend
This is only designed to work with this backend.
Usage
import * as Fs from '@basicserver/fs-frontend';
const contents = await Fs.readdir('/path/to/directory');
const text = await Fs.readFile('/path/to/file');
await Fs.mkdir('/path/to/new/directory');
await Fs.writeFile('/path/to/new/file', 'Hello, world!');
await Fs.rm('/path/to/file/or/directory');
await Fs.cp('/path/to/src', '/path/to/dest');
await Fs.mv('/path/to/src', '/path/to/dest');