github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/filesystem/metadata.go (about) 1 package filesystem 2 3 import ( 4 "time" 5 ) 6 7 // Metadata encodes information about a filesystem entry. 8 type Metadata struct { 9 // Name is the base name of the filesystem entry. 10 Name string 11 // Mode is the mode of the filesystem entry. 12 Mode Mode 13 // Size is the size of the filesystem entry in bytes. 14 Size uint64 15 // ModificationTime is the modification time of the filesystem entry. 16 ModificationTime time.Time 17 // DeviceID is the device ID of the filesystem on which the entry resides. 18 // On POSIX systems, this is the value of the st_dev field of stat_t. On 19 // Windows, this would most appropriately map to the volume serial number 20 // (e.g. the dwVolumeSerialNumber field of BY_HANDLE_FILE_INFORMATION), but 21 // this field is always left set to 0 because it can't be cheaply accessed 22 // in all cases (e.g. when using FindFirstFile/FindNextFile) and because 23 // it's not needed on Windows. 24 DeviceID uint64 25 // FileID is the file ID for the filesystem entry. On Windows systems it is 26 // always 0. 27 FileID uint64 28 }