node-dir icon indicating copy to clipboard operation
node-dir copied to clipboard

Recursive asynchronous file and directory operations for Node.js

Results 24 node-dir issues
Sort by recently updated
recently updated
newest added

if a directory is empty, `paths.js` crashes with "TypeError: Cannot read properties of undefined (reading 'files')" error.

When using the sync files function : files(dir, {sync:true}) no value is returned. Indeed in the file lib/paths.js in the definition of the return line is : `if(options.sync)return;` And should...

Is there any way to treat node-dir as an import module? I can't use require in my module.

dir.files (recursively) throws an error if any one of the directories is empty. **stack trace:** ``` node-dir/lib/paths.js:92 results.files = results.files.concat(res.files); ```

- The README is far more functional and lends itself to greater explanations. - promiseFiles now can have just options and type will default to 'file' - options.shortName='relative' is now...

The pattern matching works very well with "dir.readFiles()" but couldn't figure it out for dir.files(). The exclude and include examples do not seem to be supporting glob-like matching or regex....

As I was working on a project, this error was thrown at me: ![image](https://user-images.githubusercontent.com/969493/91958766-10775a00-ed08-11ea-88d9-348b7be3a356.png) It only occured when I was using the production build, as the Javascript Bundler I used...

The non-UTF8 test fil prevents the repository to be checked out on Macos. ``` ~/p $ git clone https://github.com/fshost/node-dir.git Cloning into 'node-dir'... remote: Enumerating objects: 368, done. remote: Total 368...