feat: improve driver
This commit is contained in:
26
internal/model/file.go
Normal file
26
internal/model/file.go
Normal file
@ -0,0 +1,26 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type File struct {
|
||||
Name string
|
||||
Size uint64
|
||||
Modified time.Time
|
||||
IsFolder bool
|
||||
}
|
||||
|
||||
func (f File) GetName() string {
|
||||
return f.Name
|
||||
}
|
||||
|
||||
func (f File) GetSize() uint64 {
|
||||
return f.Size
|
||||
}
|
||||
|
||||
func (f File) ModTime() time.Time {
|
||||
return f.Modified
|
||||
}
|
||||
|
||||
func (f File) IsDir() bool {
|
||||
return f.IsFolder
|
||||
}
|
Reference in New Issue
Block a user