smartfile/ts/smartfile.fsstream.ts

15 lines
410 B
TypeScript
Raw Normal View History

2022-06-07 13:11:21 +00:00
/*
This file contains logic for streaming things from and to the filesystem
*/
2022-06-07 13:43:28 +00:00
import * as plugins from './smartfile.plugins.js';
2022-06-07 13:11:21 +00:00
export const createReadStream = (pathArg: string) => {
return plugins.fs.createReadStream(pathArg);
};
export const createWriteStream = (pathArg: string) => {
return plugins.fs.createWriteStream(pathArg);
};
2022-07-24 21:11:41 +00:00
export const streamDirectory = async (dirPathArg: string) => {};