Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs.readdir misses a folder or two randomly #6629

Closed
TheMaverickProgrammer opened this issue May 7, 2016 · 1 comment
Closed

fs.readdir misses a folder or two randomly #6629

TheMaverickProgrammer opened this issue May 7, 2016 · 1 comment
Labels
fs Issues and PRs related to the fs subsystem / file system. invalid Issues and PRs that are invalid. question Issues that look for answers.

Comments

@TheMaverickProgrammer
Copy link

  • version: v0.10.32
  • platform: Darwin Mavericks-MacBook-Air.local 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64
  • other tech: nwjs

I'm using node webkit to render my file output into the screen. My code is asynchronous and simple:

     fs.readdir("./lib", function(err, files) {
        if (err) {
           return console.log(err);
        }

        LibDirs = files; // collected output in array  
     });

I then render the contents of LibDirs onto the node webkit DOM and it works great most of the time. Too often it misses one or even two files in the directory.

Why is this? Is this a bug?

@Fishrock123 Fishrock123 added fs Issues and PRs related to the fs subsystem / file system. question Issues that look for answers. labels May 7, 2016
@bnoordhuis
Copy link
Member

Can you report this to nw.js? If you want to pursue it here, please test with node.js v0.10.44 (but preferably the latest v6 release) and make sure the directory isn't being modified concurrently.

@bnoordhuis bnoordhuis added the invalid Issues and PRs that are invalid. label May 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fs Issues and PRs related to the fs subsystem / file system. invalid Issues and PRs that are invalid. question Issues that look for answers.
Projects
None yet
Development

No branches or pull requests

3 participants