Skip to content

Commit

Permalink
Ignore hidden files in batch
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielCosme committed Jun 14, 2024
1 parent b9536b4 commit d8ccc0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/batch/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ func (a *BatchActivity) Execute(ctx context.Context, params BatchWorkflowInput)
return nil // Ignore root.
}

if strings.HasPrefix(filepath.Base(path), ".") {
return nil // Ignore hidden files

Check warning on line 88 in internal/batch/workflow.go

View check run for this annotation

Codecov / codecov/patch

internal/batch/workflow.go#L88

Added line #L88 was not covered by tests
}

depth := len(strings.Split(rel, string(filepath.Separator))) - 1
if depth != int(params.Depth) {
return nil // Keep walking.
Expand Down

0 comments on commit d8ccc0a

Please sign in to comment.