mirror of
https://github.com/kopia/kopia.git
synced 2026-05-15 10:17:16 -04:00
22 lines
444 B
Go
22 lines
444 B
Go
package content
|
|
|
|
import "time"
|
|
|
|
// Entry stores attributes of a single entry in a directory.
|
|
type Entry struct {
|
|
Name string
|
|
Size int64
|
|
Type EntryType
|
|
ModTime time.Time
|
|
Mode int16 // 0000 .. 0777
|
|
UserID uint32
|
|
GroupID uint32
|
|
ObjectID ObjectID
|
|
}
|
|
|
|
// Directory contains access to contents of directory, both in original order and indexed by name.
|
|
type Directory struct {
|
|
Ordered []*Entry
|
|
ByName map[string]*Entry
|
|
}
|