refactor: have name return base58 cid
This commit is contained in:
parent
7b7c705c0d
commit
c3646fa4d4
|
@ -129,7 +129,9 @@ func (f *File) HashString() string {
|
|||
}
|
||||
|
||||
func (f *File) Name() string {
|
||||
return f.HashString()
|
||||
cid, _ := f.CID().ToString()
|
||||
|
||||
return cid
|
||||
}
|
||||
|
||||
func (f *File) Modtime() time.Time {
|
||||
|
|
Loading…
Reference in New Issue