diff --git a/bots/discord/src/utils/fs.ts b/bots/discord/src/utils/fs.ts index b5fc051..0fa0b7f 100644 --- a/bots/discord/src/utils/fs.ts +++ b/bots/discord/src/utils/fs.ts @@ -5,7 +5,7 @@ import { fileURLToPath } from 'bun' export const listAllFilesRecursive = (dir: string): string[] => readdirSync(dir, { recursive: true, withFileTypes: true }) .filter(x => x.isFile()) - .map(x => join(dir, x.name)) + .map(x => join(x.parentPath, x.name)) export const pathJoinCurrentDir = (importMetaUrl: string, ...objects: [string, ...string[]]) => join(dirname(fileURLToPath(importMetaUrl)), ...objects)