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 0ec5f4a commit 6fbe22aCopy full SHA for 6fbe22a
templates/cli/lib/utils.js.twig
@@ -9,9 +9,10 @@ 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()) {
+ const stats = fs.lstatSync(pathAbsolute);
13
+ if (stats.isDirectory() && !stats.isSymbolicLink()) {
14
files.push(...getAllFiles(pathAbsolute));
- } else {
15
+ } else if (stats.isFile() && !stats.isSymbolicLink()) {
16
files.push(pathAbsolute);
17
}
18
0 commit comments