diff --git a/server/utils/fileUtils.js b/server/utils/fileUtils.js index 9a349bd54..1167782b1 100644 --- a/server/utils/fileUtils.js +++ b/server/utils/fileUtils.js @@ -199,7 +199,7 @@ module.exports.recurseFiles = async (path, relPathToReplace = null) => { ignoreFolders: true, extensions: true, deep: true, - realPath: true, + realPath: process.env.SCANNER_RESOLVE_SYMLINKS !== '0', normalizePath: false } let list = await rra.list(path, options)