(ctx context.Context, nodePath string)
| 68 | } |
| 69 | |
| 70 | func (dao *FolderSizeCacheSQL) GetNodeByPath(ctx context.Context, nodePath string) (tree.ITreeNode, error) { |
| 71 | node, err := dao.DAO.GetNodeByPath(ctx, nodePath) |
| 72 | if err != nil { |
| 73 | return nil, err |
| 74 | } |
| 75 | if node != nil && !node.GetNode().IsLeaf() { |
| 76 | err := dao.folderSize(ctx, node) |
| 77 | if err != nil { |
| 78 | log.Logger(ctx).Debug("Unable to get folder size from children", zap.Error(err)) |
| 79 | } |
| 80 | } |
| 81 | return node, nil |
| 82 | } |
| 83 | |
| 84 | // GetNodeByUUID returns the node stored with the unique uuid |
| 85 | func (dao *FolderSizeCacheSQL) GetNodeByUUID(ctx context.Context, uuid string) (tree.ITreeNode, error) { |
nothing calls this directly
no test coverage detected