mode os.FileMode
size int64
modTime time.Time
+ // Source data structure: *Collection, *Group, or
+ // nil. Currently populated only for project dirs and
+ // top-level collection dirs; *not* populated for
+ // /by_id/{uuid} dirs (only subdirs below that). Does not stay
+ // up to date with upstream changes.
+ //
+ // Intended to support keep-web's properties-as-s3-metadata
+ // feature (https://dev.arvados.org/issues/19088).
+ sys interface{}
}
// Name implements os.FileInfo.
return fi.size
}
-// Sys implements os.FileInfo.
+// Sys implements os.FileInfo. See comment in fileinfo struct.
func (fi fileinfo) Sys() interface{} {
- return nil
+ return fi.sys
}
type nullnode struct{}
for _, inode := range n.inodes {
size += inode.MemorySize()
}
- return
+ return 64 + size
}
type fileSystem struct {