GithubHelp home page GithubHelp logo

Comments (8)

thecodrr avatar thecodrr commented on May 21, 2024

Hey! Thank you for creating an issue here.

First of all, you are using both crawlWithOptions and the Builder pattern; they don't work well together. crawlWithOptions overrides the other options. So the correct usage would be:

const fdir = require("fdir")

var paths = "R:\\"

var files = new fdir().withDirs().withMaxDepth(3).withBasePath().withErrors().crawl(paths).sync();

files.forEach(file_path => {
	console.log(file_path)
})

Try the above code, perhaps it will fix your bug. I have no Windows PC where I could reproduce this bug however, I will try to be as helpful as possible if you decide to debug and fix this yourself. I haven't tried fdir with network drives so your contribution with regards to that would be most welcome!

from fdir.

ewochtl avatar ewochtl commented on May 21, 2024

Hi,
thanks for your responding.
Unfortunately your Code didn't change the result.
It's still the same output.
Can you send me instructions, how i can debug the module
or how i can enable advanced logging.
Regards

from fdir.

papb avatar papb commented on May 21, 2024

Have you tried with fdir v5?

from fdir.

ewochtl avatar ewochtl commented on May 21, 2024

@papb Thanks for your help
Still no changes with fdir 5.0
But I've tested a snippet for directory listing from Stack Overflow:
https://stackoverflow.com/a/5827895/14878833
When I run this, it works fine.

from fdir.

thecodrr avatar thecodrr commented on May 21, 2024

@ewochtl if you have nvm try out fdir on Node v8.x.

from fdir.

ewochtl avatar ewochtl commented on May 21, 2024

Hi @thecodrr !
Now, with node 8.17.0 it works!
Thank you for your help!

from fdir.

papb avatar papb commented on May 21, 2024

Wait, so it works on Node 8 but does not work on Node 12?

from fdir.

ewochtl avatar ewochtl commented on May 21, 2024

Yes @papb

from fdir.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.