We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fbe22a commit b5712baCopy full SHA for b5712ba
templates/cli/lib/utils.js.twig
@@ -9,10 +9,15 @@ function getAllFiles(folder) {
9
const files = [];
10
for (const pathDir of fs.readdirSync(folder)) {
11
const pathAbsolute = path.join(folder, pathDir);
12
- const stats = fs.lstatSync(pathAbsolute);
13
- if (stats.isDirectory() && !stats.isSymbolicLink()) {
+ let stats;
+ try {
14
+ stats = fs.statSync(pathAbsolute);
15
+ } catch (error) {
16
+ continue;
17
+ }
18
+ if (stats.isDirectory()) {
19
files.push(...getAllFiles(pathAbsolute));
- } else if (stats.isFile() && !stats.isSymbolicLink()) {
20
+ } else {
21
files.push(pathAbsolute);
22
}
23
0 commit comments