Skip to content

Commit

Permalink
prune sourcedata and code from filetree before walk.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwblair committed Oct 8, 2024
1 parent 51fec69 commit e16e85b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bids-validator/src/validators/bids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ export async function validate(
const bidsDerivatives: FileTree[] = []
const nonstdDerivatives: FileTree[] = []
fileTree.directories = fileTree.directories.filter((dir) => {
if (['sourcedata', 'code'].includes(dir.name)) {
return false
}
if (dir.name !== 'derivatives') {
return true
}
Expand Down

0 comments on commit e16e85b

Please sign in to comment.