fix: actually implement Name
This commit is contained in:
parent
6d998eeff4
commit
6cac5c6a28
|
@ -125,13 +125,8 @@ func (f *File) HashString() string {
|
|||
return record.Hash
|
||||
}
|
||||
|
||||
func (f *File) Name() time.Time {
|
||||
record, err := f.Record()
|
||||
if err != nil {
|
||||
return time.Unix(0, 0)
|
||||
}
|
||||
|
||||
return record.CreatedAt
|
||||
func (f *File) Name() string {
|
||||
return f.HashString()
|
||||
}
|
||||
|
||||
func (f *File) Modtime() time.Time {
|
||||
|
|
Loading…
Reference in New Issue