- Notifications
You must be signed in to change notification settings - Fork57
Open
Description
go-storage/tests/storager_list.go
Lines 86 to 96 in813c8a1
| func (s*storageListSuite)TestListEmptyDir() { | |
| path:=uuid.New().String() | |
| it,err:=s.p.store.List(path,ps.WithListMode(types.ListModeDir)) | |
| s.NoError(err) | |
| s.NotNil(it) | |
| o,err:=it.Next() | |
| s.ErrorIs(err,types.IterateDone) | |
| s.Nil(o) | |
| } |
path is currently a non-existent path for the service. When listing a non-existent dir:
- For object storage services,
ListObjectswill get an emptyContentsinListBucketResult, in line with the expected behavior. - For
fs, althoughlistdoes not return an error, we will getno such file or directoryerror when callingNext(). - For
dropbox:ListFolderwill returnpath/not_found/...error.
Metadata
Metadata
Assignees
Labels
No labels