try to detect and return mimetype with stream file info (#552)

This commit is contained in:
Mike Sawka
2024-04-05 10:52:04 -07:00
committed by GitHub
parent 1c23701181
commit 181e14f55c
4 changed files with 41 additions and 11 deletions
+1
View File
@@ -485,6 +485,7 @@ type FileInfo struct {
ModTs int64 `json:"modts"`
IsDir bool `json:"isdir,omitempty"`
Perm int `json:"perm"`
MimeType string `json:"mimetype,omitempty"`
NotFound bool `json:"notfound,omitempty"` // when NotFound is set, Perm will be set to permission for directory
}