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

Method IsDir

filetree/node.go:230–232  ·  view source on GitHub ↗

IsDir returns true if file is a directory (folder)

()

Source from the content-addressed store, hash-verified

228
229// IsDir returns true if file is a directory (folder)
230func (fn *Node) IsDir() bool {
231 return fn.Info.IsDir()
232}
233
234// IsIrregular returns true if file is a special "Irregular" node
235func (fn *Node) IsIrregular() bool {

Callers 15

contextMenuMethod · 0.95
RenameFileMethod · 0.95
newFileMethod · 0.95
newFolderMethod · 0.95
InitMethod · 0.95
initFileInfoMethod · 0.95
OnCloseMethod · 0.95
CanOpenMethod · 0.95
openDirMethod · 0.95
OpenBufMethod · 0.95
pasteFilesMethod · 0.95
findDirNodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected