2019-02-23 00:58:32 +01:00
|
|
|
package localFileStructure
|
|
|
|
|
2019-02-27 22:11:47 +01:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"time"
|
|
|
|
)
|
2019-02-24 00:33:18 +01:00
|
|
|
|
|
|
|
type FilesystemNode struct {
|
2019-02-27 22:11:47 +01:00
|
|
|
Key string
|
|
|
|
Path string
|
|
|
|
Name string
|
|
|
|
IsDir bool
|
|
|
|
ModTime time.Time
|
2019-02-24 00:33:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (n *FilesystemNode) String() string {
|
2019-02-27 22:11:47 +01:00
|
|
|
return fmt.Sprintf("FilesystemNode: %s", n.Path)
|
|
|
|
}
|
|
|
|
|
|
|
|
type ImageNode struct {
|
2019-03-01 00:14:52 +01:00
|
|
|
Path string
|
|
|
|
CategoryName string
|
|
|
|
ModTime time.Time
|
|
|
|
Md5Sum string
|
2019-03-02 00:21:01 +01:00
|
|
|
ImageId int
|
2019-02-23 00:58:32 +01:00
|
|
|
}
|