Skip to content

Return what fsspec returns from the async _get() and a _put() that uploads nothing #1429

Open

Description

@laughingman7743

Split out of #1427 (section 3 of this comment). Found while reviewing #1426.

Two results of the async batch coroutines differ from fsspec 2026.9.0's:

  1. AioS3FileSystem._get() returns None. fsspec's _get() returns the list of the _get_file() results, as _put() does: [None] for one file with the default callback, or what a custom Callback.branch_coro() wrapper returns. The list is computed (_transfer_pairs() since Type put destinations and document path addressing (GH-1404) #1426) but discarded.
  2. A _put() that uploads nothing calls callback.set_size(0) and returns []. An example is a single local directory as a string without recursive. fsspec's _put() returns None before it uses the callback.

Matching fsspec changes return values, so the fix needs a release note.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions