Merge pull request #109 from versity/fix/scoutfs-dir-obj-key

fix: fixed object directory key for scoutfs fileToObj function
This commit is contained in:
Ben McClelland
2023-06-22 10:03:36 -07:00
committed by GitHub

View File

@@ -605,9 +605,11 @@ func (s *ScoutFS) fileToObj(bucket string) backend.GetObjFunc {
return types.Object{}, fmt.Errorf("get fileinfo: %w", err)
}
key := path + "/"
return types.Object{
ETag: &etag,
Key: &path,
Key: &key,
LastModified: backend.GetTimePtr(fi.ModTime()),
}, nil
}