webdav: replace os.FileInfo with our own type

This commit is contained in:
Simon Ser
2020-01-21 22:36:42 +01:00
parent 6023eb58a0
commit c673e7c7e7
4 changed files with 71 additions and 74 deletions

View File

@@ -2,3 +2,16 @@
//
// WebDAV is defined in RFC 4918.
package webdav
import (
"time"
)
// TODO: add ETag, MIMEType to FileInfo
type FileInfo struct {
Href string
Size int64
ModTime time.Time
IsDir bool
}