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

Method init

filetree/dir.go:41–46  ·  view source on GitHub ↗

init initializes the map, and sets the Mutex lock -- must unlock manually

()

Source from the content-addressed store, hash-verified

39
40// init initializes the map, and sets the Mutex lock -- must unlock manually
41func (dm *DirFlagMap) init() {
42 dm.mu.Lock()
43 if dm.Map == nil {
44 dm.Map = make(map[string]dirFlags)
45 }
46}
47
48// isOpen returns true if path has isOpen bit flag set
49func (dm *DirFlagMap) isOpen(path string) bool {

Callers 5

isOpenMethod · 0.95
setOpenMethod · 0.95
sortByNameMethod · 0.95
sortByModTimeMethod · 0.95
setSortByMethod · 0.95

Calls 1

LockMethod · 0.65

Tested by

no test coverage detected