Skip to content

Commit

Permalink
fix: use temp dir as specified by flag
Browse files Browse the repository at this point in the history
This commit fixes the temp dir path to be exactly as specified
by the provided flag. By appending a suffix path the validation
will fail spuriously because the temp dir cannot be accessed if it
does not exist.
  • Loading branch information
maeb committed Nov 7, 2023
1 parent 05fd7d6 commit ced7fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/fai/fai.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (f *fAI) processFile(file string) {
}

// validate file
isValid, err := warc.IsValid(file, filepath.Join(f.tmpDir, "buffer"))
isValid, err := warc.IsValid(file, f.tmpDir)
if err != nil {
f.logger.Error("Failed to validate file", "file", file, "error", err)
return
Expand Down

0 comments on commit ced7fd9

Please sign in to comment.