fix: Recursively ignore hidden folders (#3997)

Fixes #3938.
This commit is contained in:
Kyle Carberry 2022-09-11 15:13:20 -05:00 committed by GitHub
parent 9e148a5cac
commit 6e20f9c729
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ func Tar(directory string, limit int64) ([]byte, error) {
if err != nil {
return err
}
if strings.HasPrefix(rel, ".") {
if strings.HasPrefix(filepath.Base(rel), ".") {
// Don't archive hidden files!
return err
}