X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8288bba27e9beff7273aeb65c5200248e52bab02..c502c5a50aae825683ee4cff629c6839a4209501:/sdk/go/arvados/fs_base.go diff --git a/sdk/go/arvados/fs_base.go b/sdk/go/arvados/fs_base.go index ce9253ab3d..0cde825b38 100644 --- a/sdk/go/arvados/fs_base.go +++ b/sdk/go/arvados/fs_base.go @@ -234,6 +234,15 @@ type fileinfo struct { 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. @@ -261,9 +270,9 @@ func (fi fileinfo) Size() int64 { 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{}