Fix: do hard-copy when editing file with soft links

This commit is contained in:
HFO4
2020-01-16 10:11:16 +08:00
parent 098aa0a0c0
commit 0e62665d7f
6 changed files with 88 additions and 1 deletions

View File

@@ -168,6 +168,11 @@ func (file *File) UpdateSize(value uint64) error {
return DB.Model(&file).Update("size", value).Error
}
// UpdateSourceName 更新文件的源文件名
func (file *File) UpdateSourceName(value string) error {
return DB.Model(&file).Update("source_name", value).Error
}
/*
实现 webdav.FileInfo 接口
*/