sortBy determines how to sort the files in the directory -- default is alpha by name, optionally can be sorted by modification time.
(modTime bool)
| 436 | // sortBy determines how to sort the files in the directory -- default is alpha by name, |
| 437 | // optionally can be sorted by modification time. |
| 438 | func (fn *Node) sortBy(modTime bool) { |
| 439 | fn.FileRoot.setDirSortBy(fn.Filepath, modTime) |
| 440 | fn.NeedsLayout() |
| 441 | } |
| 442 | |
| 443 | // openAll opens all directories under this one |
| 444 | func (fn *Node) openAll() { //types:add |
no test coverage detected