Exclude @eaDir and #snapshot from recursive library searching

This commit is contained in:
Martin Sloup 2024-01-17 10:05:50 +01:00 committed by GitHub
parent 90f4833c9e
commit 5195b33da5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -167,7 +167,8 @@ async function recurseFiles(path, relPathToReplace = null) {
extensions: true, extensions: true,
deep: true, deep: true,
realPath: true, realPath: true,
normalizePath: true normalizePath: true,
exclude: ['@eaDir', '#snapshot']
} }
let list = await rra.list(path, options) let list = await rra.list(path, options)
if (list.error) { if (list.error) {
@ -440,4 +441,4 @@ module.exports.getDirectoriesInPath = async (dirPath, level) => {
Logger.error('Failed to readdir', dirPath, error) Logger.error('Failed to readdir', dirPath, error)
return [] return []
} }
} }