fix(server): dot files (#4625)

This commit is contained in:
Jason Rasmussen
2023-10-24 12:08:18 -04:00
committed by GitHub
parent 3e3598fd92
commit 5921ec9a58
3 changed files with 16 additions and 4 deletions

View File

@@ -125,7 +125,12 @@ export class AuditService {
const fullPath = (filename: string) => resolve(filename);
const hasFile = (items: Set<string>, filename: string) => items.has(filename) || items.has(fullPath(filename));
const crawl = async (folder: StorageFolder) =>
new Set(await this.storageRepository.crawl({ pathsToCrawl: [StorageCore.getBaseFolder(folder)] }));
new Set(
await this.storageRepository.crawl({
includeHidden: true,
pathsToCrawl: [StorageCore.getBaseFolder(folder)],
}),
);
const uploadFiles = await crawl(StorageFolder.UPLOAD);
const libraryFiles = await crawl(StorageFolder.LIBRARY);