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

Method dirSortByModTime

filetree/tree.go:282–284  ·  view source on GitHub ↗

dirSortByModTime returns true if dir is sorted by mod time

(fpath core.Filename)

Source from the content-addressed store, hash-verified

280
281// dirSortByModTime returns true if dir is sorted by mod time
282func (ft *Tree) dirSortByModTime(fpath core.Filename) bool {
283 return ft.Dirs.sortByModTime(ft.RelativePathFrom(fpath))
284}
285
286// AddExternalFile adds an external file outside of root of file tree
287// and triggers an update, returning the Node for it, or

Callers 1

dirFileListMethod · 0.80

Calls 2

sortByModTimeMethod · 0.80
RelativePathFromMethod · 0.80

Tested by

no test coverage detected