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

Method openDir

filetree/node.go:420–426  ·  view source on GitHub ↗

openDir opens given directory node

()

Source from the content-addressed store, hash-verified

418
419// openDir opens given directory node
420func (fn *Node) openDir() {
421 if !fn.IsDir() {
422 return
423 }
424 fn.FileRoot.setDirOpen(fn.Filepath)
425 fn.Update()
426}
427
428// sortBys determines how to sort the selected files in the directory.
429// Default is alpha by name, optionally can be sorted by modification time.

Callers 2

OnOpenMethod · 0.95
dirsToMethod · 0.80

Calls 3

IsDirMethod · 0.95
setDirOpenMethod · 0.80
UpdateMethod · 0.65

Tested by

no test coverage detected