MCPcopy Create free account
hub / github.com/pydio/cells / DelNode

Method DelNode

common/storage/sql/index/folder-size-cache.go:182–185  ·  view source on GitHub ↗

DelNode removes a node from the tree

(ctx context.Context, node tree.ITreeNode)

Source from the content-addressed store, hash-verified

180
181// DelNode removes a node from the tree
182func (dao *FolderSizeCacheSQL) DelNode(ctx context.Context, node tree.ITreeNode) error {
183 dao.invalidateMPathHierarchy(ctx, node.GetMPath(), -1)
184 return dao.DAO.DelNode(ctx, node)
185}
186
187// MoveNodeTree move all the nodes belonging to a tree by calculating the new mpathes
188func (dao *FolderSizeCacheSQL) MoveNodeTree(ctx context.Context, nodeFrom tree.ITreeNode, nodeTo tree.ITreeNode) error {

Callers

nothing calls this directly

Calls 3

GetMPathMethod · 0.65
DelNodeMethod · 0.65

Tested by

no test coverage detected