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

Method UpdateNode

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

SetNode updates a node, including its tree position

(ctx context.Context, node tree.ITreeNode)

Source from the content-addressed store, hash-verified

174
175// SetNode updates a node, including its tree position
176func (dao *FolderSizeCacheSQL) UpdateNode(ctx context.Context, node tree.ITreeNode) error {
177 dao.invalidateMPathHierarchy(ctx, node.GetMPath(), -1)
178 return dao.DAO.UpdateNode(ctx, node)
179}
180
181// DelNode removes a node from the tree
182func (dao *FolderSizeCacheSQL) DelNode(ctx context.Context, node tree.ITreeNode) error {

Callers

nothing calls this directly

Calls 3

GetMPathMethod · 0.65
UpdateNodeMethod · 0.65

Tested by

no test coverage detected