Comments (5)
Hello, @vjpr,
This is a good question!
I see that the fast-glob
package works like node-glob
package.
fixtures/
├── a
│ └── b -> /Users/mrmlnc/Documents/Tests/globby/fixtures/b/
└── b
└── a -> /Users/mrmlnc/Documents/Tests/globby/fixtures/a/
node-glob
[ 'fixtures',
'fixtures/a',
'fixtures/a/b',
'fixtures/a/b/a',
'fixtures/a/b/a/b',
'fixtures/a/b/a/b/a',
'fixtures/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b',
'fixtures/b/a',
'fixtures/b/a/b',
'fixtures/b/a/b/a',
'fixtures/b/a/b/a/b',
'fixtures/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a' ]
fast-glob
[ 'fixtures/a',
'fixtures/b',
'fixtures/a/b',
'fixtures/b/a',
'fixtures/a/b/a',
'fixtures/b/a/b',
'fixtures/a/b/a/b',
'fixtures/b/a/b/a',
'fixtures/a/b/a/b/a',
'fixtures/b/a/b/a/b',
'fixtures/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a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/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b',
'fixtures/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a/b/a' ]
What kind of restriction are you talking about?
JFYI: You can use followSymlinkedDirectories
to avoid work with symlinks (like follow
in the node-glob
package`).
from fast-glob.
from fast-glob.
I think that the answer is somewhere here for UNIX-like systems and here for Windows.
from fast-glob.
Also you can set an upper limit of nesting for directories using the deep
option.
from fast-glob.
Closed as outdated issue without a response. Feel free to create a new issue or reopen it.
from fast-glob.
Related Issues (20)
- TypeError: patterns.reduce is not a function HOT 10
- Breaking changes in v3.3.0 HOT 1
- Type definitions erroneously disallow passing an explicitly readonly array of strings HOT 1
- Use `os.availableParallelism` instead of `os.cpus().length` when available HOT 1
- Merging DEFAULT_FILE_SYSTEM_ADAPTER to fs HOT 4
- Regression in v3.3.1 HOT 3
- Case sensitive file paths are returned as potentially the wrong case when using WSL with window's paths HOT 1
- Inconsistent File Format Handling Between Windows and POSIX in fast-glob HOT 7
- Unable to match correctly HOT 1
- fast glob ramdisk issue
- [doc] what is the behaviour of passing an array of patterns?
- Allow abort glob progress
- In Node.js v20.11.0, it's not possible to match directories containing emojis.
- Directory globs with and without trailing slash in ignore patterns have different results
- No results returned if the file is a socket HOT 1
- [QUESTION] - Awilix.fast-glob Fails to Autoload Modules in Tests with TypeScript Setup
- Inconsistent file count HOT 1
- Ignore patterns are applied to the absolute path instead of relative to the working directory HOT 4
- New fast-glob version required due to dependency CVE in micromatch HOT 3
- Matching failed when adding drive's name in Windows
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 fast-glob.