Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

test:TestListEmptyDir expected behavior does not apply to some file hosting service #1034

Open
@JinnyYi

Description

@JinnyYi

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,ListObjects will get an emptyContents inListBucketResult, in line with the expected behavior.
  • Forfs, althoughlist does not return an error, we will getno such file or directory error when callingNext().
  • Fordropbox:ListFolder will returnpath/not_found/... error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp