mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
Merge branch 'feat/fd-glob' of https://github.com/immich-app/immich into feat/crawl-wrapper
This commit is contained in:
@@ -394,7 +394,16 @@ export class LibraryService extends BaseService {
|
||||
|
||||
private async processEntity(filePath: string, ownerId: string, libraryId: string) {
|
||||
const assetPath = path.normalize(filePath);
|
||||
const stat = await this.storageRepository.stat(assetPath);
|
||||
|
||||
let stat: Stats;
|
||||
try {
|
||||
stat = await this.storageRepository.stat(assetPath);
|
||||
} catch (error: any) {
|
||||
if (error.code === 'ENOENT') {
|
||||
this.logger.error(`File not found during import: ${assetPath} (original path: ${filePath})`);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
|
||||
return {
|
||||
ownerId,
|
||||
|
||||
Reference in New Issue
Block a user