- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for getFileInfo (0.07 sec)
-
cmd/xl-storage-format-utils.go
Name: path, Versions: versions, LatestModTime: versions[0].ModTime, }, nil } type fileInfoOpts struct { InclFreeVersions bool Data bool } func getFileInfo(xlMetaBuf []byte, volume, path, versionID string, opts fileInfoOpts) (FileInfo, error) { var fi FileInfo var err error var inData xlMetaInlineData if buf, data, e := isIndexedMetaV2(xlMetaBuf); e != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 08 15:29:58 UTC 2024 - 5.5K bytes - Viewed (0) -
cmd/metacache-entries.go
Name: e.name, Deleted: true, IsLatest: true, ModTime: timeSentinel1970, }, nil } return e.cached.ToFileInfo(bucket, e.name, "", false, true) } return getFileInfo(e.metadata, bucket, e.name, "", fileInfoOpts{}) } // xlmeta returns the decoded metadata. // This should not be called on directories. func (e *metaCacheEntry) xlmeta() (*xlMetaV2, error) { if e.isDir() {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 08 15:29:58 UTC 2024 - 24.1K bytes - Viewed (0) -
cmd/xl-storage_test.go
xlStorage, _, err := newXLStorageTestSetup(t) if err != nil { t.Fatalf("Unable to cfgreate xlStorage test setup, %s", err) } xlMeta, _ := os.ReadFile("testdata/xl.meta") fi, _ := getFileInfo(xlMeta, "exists", "as-file", "", fileInfoOpts{Data: false}) // Create files for the test cases. if err = xlStorage.MakeVol(context.Background(), "exists"); err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 66.7K bytes - Viewed (0) -
cmd/erasure-object.go
} tags[fmt.Sprintf("ddisk-%d", index)] = errStr } return m, nil } func fileInfoFromRaw(ri RawFileInfo, bucket, object string, readData, inclFreeVers bool) (FileInfo, error) { return getFileInfo(ri.Buf, bucket, object, "", fileInfoOpts{ Data: readData, InclFreeVersions: inclFreeVers, }) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 31 22:10:24 UTC 2024 - 78.8K bytes - Viewed (0) -
cmd/xl-storage.go
if err != nil { if err == errFileNotFound { if versionID != "" { return fi, errFileVersionNotFound } } return fi, err } fi, err = getFileInfo(buf, volume, path, versionID, fileInfoOpts{ Data: opts.ReadData, InclFreeVersions: opts.InclFreeVersions, }) if err != nil { return fi, err } if len(fi.Data) == 0 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Oct 26 09:58:27 UTC 2024 - 91.3K bytes - Viewed (0)