fix: actually implement Name

This commit is contained in:
Derrick Hammer 2024-01-24 19:16:50 -05:00
parent 6d998eeff4
commit 6cac5c6a28
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 7 deletions

View File

@ -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 {