services/s3: While ListMode is ListModeDir, we need to add suffix under path
Xuanwo opened this issue · comments
Xuanwo commented
JinnyYi commented
In byctl, we implemented ls
command through List
with ListModeDir
. After adding suffix under path for List
with ListModeDir
, we can't get the objects without the /
prefix in the object name.
Xuanwo commented
go-storage/services/s3/storage.go
Lines 272 to 275 in 813c8a1
I think it's a bug that introduced in this commit. Instead, we need to update path
before s.getAbsPath(path)
.