1.0.0 • Published 5 years ago
file-reader-py v1.0.0
file-reader-py
Module for reading a list of files in path
Usage:
readFiles(path, callback)
- Reads files from path
and redirects results to callback
Example:
const readFiles = require("../file-reader")
readFiles("K:/", (data) => {
console.log(data.path);
console.log(data.filesCount);
console.log(data.filesPaths);
})
Function returns an object with:
path
- path that was searched,filesCount
- number of found files,filesPaths
- an array with paths to found files.
1.0.0
5 years ago