MCPcopy
hub / github.com/filebrowser/filebrowser / GetLength

Method GetLength

http/upload_cache_memory.go:60–66  ·  view source on GitHub ↗
(filePath string)

Source from the content-addressed store, hash-verified

58}
59
60func (c *memoryUploadCache) GetLength(filePath string) (int64, error) {
61 item := c.cache.Get(filePath)
62 if item == nil {
63 return 0, fmt.Errorf("no active upload found for the given path")
64 }
65 return item.Value(), nil
66}
67
68func (c *memoryUploadCache) Touch(filePath string) {
69 c.cache.Touch(filePath)

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
ValueMethod · 0.45

Tested by

no test coverage detected