ipld-eth-server/vendor/github.com/ipfs/go-ipfs-files/is_hidden.go

19 lines
236 B
Go

// +build !windows
package files
import (
"path/filepath"
"strings"
)
func IsHidden(name string, f Node) bool {
fName := filepath.Base(name)
if strings.HasPrefix(fName, ".") && len(fName) > 1 {
return true
}
return false
}