From b770daa3b55777bcc634f993fede038924aeaf50 Mon Sep 17 00:00:00 2001 From: jonaustin09 Date: Thu, 22 Jun 2023 20:51:37 +0400 Subject: [PATCH] fix: fixed object directory key for scoutfs fileToObj function --- backend/scoutfs/scoutfs.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/scoutfs/scoutfs.go b/backend/scoutfs/scoutfs.go index c17a7ba..533ca63 100644 --- a/backend/scoutfs/scoutfs.go +++ b/backend/scoutfs/scoutfs.go @@ -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 }