Skip to content

Commit 6fbe22a

Browse files
committed
fix: hot swapping error in python ml function
1 parent 0ec5f4a commit 6fbe22a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

templates/cli/lib/utils.js.twig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ function getAllFiles(folder) {
99
const files = [];
1010
for (const pathDir of fs.readdirSync(folder)) {
1111
const pathAbsolute = path.join(folder, pathDir);
12-
if (fs.statSync(pathAbsolute).isDirectory()) {
12+
const stats = fs.lstatSync(pathAbsolute);
13+
if (stats.isDirectory() && !stats.isSymbolicLink()) {
1314
files.push(...getAllFiles(pathAbsolute));
14-
} else {
15+
} else if (stats.isFile() && !stats.isSymbolicLink()) {
1516
files.push(pathAbsolute);
1617
}
1718
}

0 commit comments

Comments
 (0)