forked from cerc-io/ipld-eth-server
19 lines
236 B
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
|
|
}
|