Files
smartfile/ts/smartfile.fsstream.ts

15 lines
410 B
TypeScript
Raw Normal View History

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