mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
try to detect and return mimetype with stream file info (#552)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user