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
|
return record.Hash
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *File) Name() time.Time {
|
func (f *File) Name() string {
|
||||||
record, err := f.Record()
|
return f.HashString()
|
||||||
if err != nil {
|
|
||||||
return time.Unix(0, 0)
|
|
||||||
}
|
|
||||||
|
|
||||||
return record.CreatedAt
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *File) Modtime() time.Time {
|
func (f *File) Modtime() time.Time {
|
||||||
|
|
Loading…
Reference in New Issue