Skip to content

Commit

Permalink
fix: fs access flow fixing (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-gilin authored Jul 23, 2024
1 parent db1a7c0 commit c79c3f6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/backend/src/yeomanui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,12 @@ export class YeomanUI {
try {
for (const file of await promises.readdir(folderPath)) {
const resourcePath: string = path.join(folderPath, file);
if ((await promises.stat(resourcePath)).isDirectory()) {
result.childDirs.push(resourcePath);
try {
if ((await promises.stat(resourcePath)).isDirectory()) {
result.childDirs.push(resourcePath);
}
} catch (e) {
// ignore : broken soft link or access denied
}
}
} catch (error) {
Expand Down

0 comments on commit c79c3f6

Please sign in to comment.