Files
kopia/content/dir.go
Jarek Kowalski 3e3c4de77b added content
2016-03-21 20:16:32 -07:00

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
}