added file size

This commit is contained in:
ston1th 2022-10-05 20:35:15 +02:00
commit 055e9db8e2
5 changed files with 33 additions and 2 deletions

View file

@ -59,6 +59,7 @@ type file struct {
Name template.HTML
URI template.HTML
Anchor string
Size string
Status int
Prio int
Errc int
@ -122,6 +123,7 @@ func (r *responseInterceptor) GetPaths(path string, fs *fs.FS, relative bool) (d
Name: name,
URI: uri,
Anchor: anchor(p),
Size: fs.FileSize(full),
Status: fs.CacheStatus(full),
})
}