mirror of
https://github.com/evdboom/Bindery.git
synced 2026-07-22 06:49:36 +00:00
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
170fd31fc5
commit
337fa87592
1 changed files with 7 additions and 1 deletions
|
|
@ -1729,7 +1729,13 @@ function listStoryMarkdownFiles(root: string): string[] {
|
|||
}
|
||||
|
||||
function collectMarkdownFiles(dir: string, acc: string[]): void {
|
||||
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
||||
let entries: fs.Dirent[];
|
||||
try {
|
||||
entries = fs.readdirSync(dir, { withFileTypes: true });
|
||||
} catch {
|
||||
return;
|
||||
}
|
||||
for (const entry of entries) {
|
||||
const fullPath = path.join(dir, entry.name);
|
||||
if (entry.isDirectory()) {
|
||||
collectMarkdownFiles(fullPath, acc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue