Skip to content

Commit 61a8ed5

Browse files
authored
fix(123): add get and list hash info (#1278)
1 parent bbb7c06 commit 61a8ed5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/123/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func (f File) CreateTime() time.Time {
2828
}
2929

3030
func (f File) GetHash() utils.HashInfo {
31-
return utils.HashInfo{}
31+
return utils.NewHashInfo(utils.MD5, f.Etag)
3232
}
3333

3434
func (f File) GetPath() string {

drivers/123_share/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type File struct {
2424
}
2525

2626
func (f File) GetHash() utils.HashInfo {
27-
return utils.HashInfo{}
27+
return utils.NewHashInfo(utils.MD5, f.Etag)
2828
}
2929

3030
func (f File) GetPath() string {

0 commit comments

Comments
 (0)