Feat: finish WebDAV adaptation

This commit is contained in:
HFO4
2019-12-20 15:08:04 +08:00
parent c1b02380ac
commit e97ed216f2
15 changed files with 44 additions and 4848 deletions

View File

@@ -183,6 +183,11 @@ func (file *File) GetSize() uint64 {
func (file *File) ModTime() time.Time {
return file.UpdatedAt
}
func (file *File) IsDir() bool {
return false
}
func (file *File) GetPosition() string {
return file.Position
}

View File

@@ -280,3 +280,6 @@ func (folder *Folder) ModTime() time.Time {
func (folder *Folder) IsDir() bool {
return true
}
func (folder *Folder) GetPosition() string {
return folder.Position
}