From 3e3ca4c104bdc16db40500add1c4fd6d3f4cc039 Mon Sep 17 00:00:00 2001 From: Tijs Date: Fri, 28 Nov 2025 12:40:33 +0100 Subject: [PATCH] feat(server): exclude syncthing folders from external libraries (#24240) * Add SyncThing folders to External library exclusion SyncThing is a popular library for syncing files (like pictures) between systems. It can really mess up your library if an external library, which is also used by SyncThing, is added and these folders are not excluded. * Plural * fix formatting --------- Co-authored-by: Jonathan Jogenfors --- server/src/services/library.service.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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); }