Comments (8)
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.
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.
Have you tried with fdir v5?
from fdir.
@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.
@ewochtl if you have nvm
try out fdir on Node v8.x.
from fdir.
Hi @thecodrr !
Now, with node 8.17.0 it works!
Thank you for your help!
from fdir.
Wait, so it works on Node 8 but does not work on Node 12?
from fdir.
Yes @papb
from fdir.
Related Issues (20)
- A big THANK YOU is in order HOT 1
- Can it return the size of each file HOT 1
- File has no extension, can not found HOT 3
- Compare to native options HOT 22
- Export type `Options` from `crawlWithOptions(dir, Options)` HOT 1
- Make a note about the `sync` api being much slower
- Remove callback API in next major HOT 1
- v7.0 Plan HOT 7
- Need to list path to symlink instead of resolved path HOT 2
- Limit files option HOT 1
- Need help debugging an issue?? with fdir HOT 4
- What's the correct way to use globbing? HOT 2
- Crawl with options group interface no longer correct in v5.2.0 (v5.1.0 was the same) HOT 1
- Ideas for mocking HOT 1
- [Feature] glob/crawl by symlink path, not real path HOT 7
- Sorting based on date, name, size etc
- Issue with SharePoint project accessible over the network HOT 2
- Invalid reference of TypeScript types HOT 2
- Feature request: pass picomatch to the builder HOT 3
- Avoiding double backslash
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fdir.