Skip to content

Commit

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

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

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

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

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

View check run for this annotation

Codecov / codecov/patch

internal/batch/workflow.go#L93

Added line #L93 was not covered by tests
}

req := collection.ProcessingWorkflowRequest{
BatchDir: filepath.Dir(path),
Key: entry.Name(),
Expand Down

0 comments on commit 6e17255

Please sign in to comment.