MCPcopy
hub / github.com/go-git/go-git / IsDir

Method IsDir

utils/merkletrie/noder/noder.go:43–43  ·  view source on GitHub ↗

IsDir returns true if the element is a directory-like node or false if it is a file-like node.

()

Source from the content-addressed store, hash-verified

41 // IsDir returns true if the element is a directory-like node or
42 // false if it is a file-like node.
43 IsDir() bool
44 // Children returns the children of the element. Note that empty
45 // directory-like noders and file-like noders will both return
46 // NoChildren.

Callers 15

preloadStatusFunction · 0.95
TestCloneSparseMethod · 0.65
dotGitToOSFilesystemsFunction · 0.65
checkIfCleanupIsNeededFunction · 0.65
doCleanMethod · 0.65
TestCheckoutSparseMethod · 0.65
TestCleanMethod · 0.65
excludeIgnoredChangesMethod · 0.65
doAddMethod · 0.65
AddGlobMethod · 0.65
RemoveMethod · 0.65

Implementers 6

fileutils/merkletrie/internal/fsnoder/file
dirutils/merkletrie/internal/fsnoder/dir.
nodeutils/merkletrie/index/node.go
noderMockutils/merkletrie/noder/noder_test.go
nodeutils/merkletrie/filesystem/node.go
treeNoderplumbing/object/treenoder.go

Calls

no outgoing calls

Tested by 9

TestCloneSparseMethod · 0.52
TestCheckoutSparseMethod · 0.52
TestCleanMethod · 0.52
TestNewFileEmptyMethod · 0.52
TestIsDirMethod · 0.52