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 ff3a54e commit d1f5e65Copy full SHA for d1f5e65
src/modules/games/files.service.ts
@@ -610,10 +610,19 @@ export class FilesService implements OnApplicationBootstrap {
610
type: "files",
611
depth: configuration.GAMES.SEARCH_RECURSIVE ? undefined : 0,
612
fileFilter: (entry) => this.isValidFilePath(entry.basename),
613
+ alwaysStat: true, // ensure size is available for integrity checks
614
});
615
616
const files: File[] = [];
617
for await (const entry of entries) {
618
+ if (!entry.stats) {
619
+ this.logger.warn({
620
+ message: "Skipping file without stats during indexing.",
621
+ path: entry.fullPath,
622
+ });
623
+ continue;
624
+ }
625
+
626
files.push({
627
path: entry.fullPath,
628
size: BigInt(entry.stats.size),
0 commit comments