mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-19 21:20:31 +08:00
20 lines
232 B
Go
20 lines
232 B
Go
// +build !windows
|
|
|
|
package files
|
|
|
|
import (
|
|
"path/filepath"
|
|
"strings"
|
|
)
|
|
|
|
func IsHidden(f File) bool {
|
|
|
|
fName := filepath.Base(f.FileName())
|
|
|
|
if strings.HasPrefix(fName, ".") && len(fName) > 1 {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|