Skip to content

High performance self-hosted photo and video management solution.

feat(server): exclude syncthing folders from external libraries (#24240)

Tijs3e3ca4c104bd
diff --git a/server/src/services/library.service.ts b/server/src/services/library.service.ts
index 5f78fa3629..841fa4743c 100644
--- a/server/src/services/library.service.ts
+++ b/server/src/services/library.service.ts
@@ -223,7 +223,14 @@ export class LibraryService extends BaseService {
ownerId: dto.ownerId,
name: dto.name ?? 'New External Library',
importPaths: dto.importPaths ?? [],
- exclusionPatterns: dto.exclusionPatterns ?? ['**/@eaDir/**', '**/._*', '**/#recycle/**', '**/#snapshot/**'],
+ exclusionPatterns: dto.exclusionPatterns ?? [
+ '**/@eaDir/**',
+ '**/._*',
+ '**/#recycle/**',
+ '**/#snapshot/**',
+ '**/.stversions/**',
+ '**/.stfolder/**',
+ ],
});
return mapLibrary(library);
}