MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / IsHidden

Function IsHidden

agent/utils/files/utils.go:83–86  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

81const dotCharacter = 46
82
83func IsHidden(path string) bool {
84 base := filepath.Base(path)
85 return len(base) > 1 && base[0] == dotCharacter
86}
87
88var readerPool = sync.Pool{
89 New: func() interface{} {

Callers 2

NewFileInfoFunction · 0.85
processFilesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected