npm install @frctl/ffsFractal filesystem utilities.


Reads a directory (or directories) of files and represents them as File objects. Returns a Promise.
* src: Directory path (or array of paths) to read from [required]
``js
const fs = require('@frctl/fs');
fs.readDir('path/to/files').then(files => {
console.log(files);
});
`
Clone a File, optionally overwriting it's properties with those from props.
* file: Instance of File that should be cloned [required]props
* : Set of properties to overwrite on the cloned file
`js
const fs = require('@frctl/fs');
const file = new fs.File({
path: '/path/to/file.js',
contents: Buffer.from('The file contents')
});
const cloned = fs.cloneFile(file, {
path: '/path/to/foo.js'
});
`
`bash``
npm i @frctl/ffs --save
Node >= v6.0 is required.