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

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
}