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.
2 parents 0ec5f4a + b5712ba commit e8144c9Copy full SHA for e8144c9
templates/cli/lib/utils.js.twig
@@ -9,7 +9,13 @@ function getAllFiles(folder) {
9
const files = [];
10
for (const pathDir of fs.readdirSync(folder)) {
11
const pathAbsolute = path.join(folder, pathDir);
12
- if (fs.statSync(pathAbsolute).isDirectory()) {
+ let stats;
13
+ try {
14
+ stats = fs.statSync(pathAbsolute);
15
+ } catch (error) {
16
+ continue;
17
+ }
18
+ if (stats.isDirectory()) {
19
files.push(...getAllFiles(pathAbsolute));
20
} else {
21
files.push(pathAbsolute);
0 commit comments