init initializes the map, and sets the Mutex lock -- must unlock manually
()
| 39 | |
| 40 | // init initializes the map, and sets the Mutex lock -- must unlock manually |
| 41 | func (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 |
| 49 | func (dm *DirFlagMap) isOpen(path string) bool { |
no test coverage detected