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

Method OnClose

filetree/node.go:408–413  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

406}
407
408func (fn *Node) OnClose() {
409 if !fn.IsDir() {
410 return
411 }
412 fn.FileRoot.setDirClosed(fn.Filepath)
413}
414
415func (fn *Node) CanOpen() bool {
416 return fn.HasChildren() || fn.IsDir()

Callers

nothing calls this directly

Calls 2

IsDirMethod · 0.95
setDirClosedMethod · 0.80

Tested by

no test coverage detected