fix: fixed object directory key for scoutfs fileToObj function

This commit is contained in:
jonaustin09
2023-06-22 20:51:37 +04:00
parent 065c126096
commit b770daa3b5
+3 -1
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
}