Optimization of algorithms for complex patterns
See original GitHub issueEnvironment
- OS Version: Manjaro Linux x86_64
- Node.js Version: v11.8.0
Actual behavior
(node:22393) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied
Steps to reproduce and Code sample
.
├── dir
│ ├── one
│ │ ├── a
│ │ │ └── 1.js
│ │ └── b
│ │ └── 2.js
│ └── two [error opening dir]
├── dir2
│ └── one
│ ├── a
│ │ └── 1.js
│ └── b
│ └── 2.js
├── fast-glob.js
├── package.json
└── package-lock.json
// fast-glob.js
const fg = require('fast-glob');
fg(['+(dir|dir2)/one/**/*']).then((entries) => console.log(entries));
$ node fast-glob.js
(node:22859) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, scandir '/home/keenwon/Test/fast-glob-test/dir/two'
(node:22859) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:22859) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
current user doesn’t have permission to access dir/two
:
total 8.0K
drwxr-xr-x 4 keenwon keenwon 4.0K 2月 13 17:37 one
dr-x------ 2 root root 4.0K 2月 13 17:54 two
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (9 by maintainers)
Top Results From Across the Web
How to Choose an Optimization Algorithm
One approach to grouping optimization algorithms is based on the amount of information available about the target function that is being ...
Read more >Optimization of the Complex-RFM Optimization Algorithm
Abstract This paper presents and compares different modifications made to the Complex-. RF optimization algorithm with the aim of improving its performance ...
Read more >Optimization of Complex Systems: Theory, Models, Algorithms ...
Pattern Recognition with Using Effective Algorithms and Methods ... world engineering optimization problems remain very complex in nature ...
Read more >Optimizing optimization algorithms | MIT News
Optimizing optimization algorithms. Analysis shows how to get the best results when approximating solutions to complex engineering problems.
Read more >Optimization Methods for Engineering Design - APMonitor
In summary, computer-based optimization refers to using computer algorithms to search the design space of a computer model. The design variables are adjusted ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Will be available with
fast-glob@3.2.0
(#251).Just another try to split pattern into segments. This works for most of the patterns from the micromatch tests (random selection).