MCPcopy Create free account
hub / github.com/cogentcore/core / isOpen

Method isOpen

filetree/dir.go:49–56  ·  view source on GitHub ↗

isOpen returns true if path has isOpen bit flag set

(path string)

Source from the content-addressed store, hash-verified

47
48// isOpen returns true if path has isOpen bit flag set
49func (dm *DirFlagMap) isOpen(path string) bool {
50 dm.init()
51 defer dm.mu.Unlock()
52 if df, ok := dm.Map[path]; ok {
53 return df.HasFlag(dirIsOpen)
54 }
55 return false
56}
57
58// SetOpenState sets the given directory's open flag
59func (dm *DirFlagMap) setOpen(path string, open bool) {

Callers

nothing calls this directly

Calls 3

initMethod · 0.95
UnlockMethod · 0.65
HasFlagMethod · 0.65

Tested by

no test coverage detected