From 5195b33da5ba126197e04205ef27a476fe75a621 Mon Sep 17 00:00:00 2001 From: Martin Sloup Date: Wed, 17 Jan 2024 10:05:50 +0100 Subject: [PATCH] Exclude @eaDir and #snapshot from recursive library searching --- server/utils/fileUtils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/utils/fileUtils.js b/server/utils/fileUtils.js index 14e4d743c..5d0d5e236 100644 --- a/server/utils/fileUtils.js +++ b/server/utils/fileUtils.js @@ -167,7 +167,8 @@ async function recurseFiles(path, relPathToReplace = null) { extensions: true, deep: true, realPath: true, - normalizePath: true + normalizePath: true, + exclude: ['@eaDir', '#snapshot'] } let list = await rra.list(path, options) if (list.error) { @@ -440,4 +441,4 @@ module.exports.getDirectoriesInPath = async (dirPath, level) => { Logger.error('Failed to readdir', dirPath, error) return [] } -} \ No newline at end of file +}