GetNodeByUUID returns the node stored with the unique uuid
(ctx context.Context, uuid string)
| 83 | |
| 84 | // GetNodeByUUID returns the node stored with the unique uuid |
| 85 | func (dao *FolderSizeCacheSQL) GetNodeByUUID(ctx context.Context, uuid string) (tree.ITreeNode, error) { |
| 86 | |
| 87 | node, err := dao.DAO.GetNodeByUUID(ctx, uuid) |
| 88 | if err != nil { |
| 89 | return nil, err |
| 90 | } |
| 91 | |
| 92 | if !node.GetNode().IsLeaf() { |
| 93 | err := dao.folderSize(ctx, node) |
| 94 | if err != nil { |
| 95 | log.Logger(ctx).Debug("Unable to use cache for folder size", zap.Error(err)) |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | return node, nil |
| 100 | } |
| 101 | |
| 102 | // GetNodeChildren List |
| 103 | func (dao *FolderSizeCacheSQL) GetNodeChildren(ctx context.Context, path *tree.MPath, filter ...*tree.MetaFilter) chan interface{} { |
nothing calls this directly
no test coverage detected