Skip to content

Act on listed identities in pairing and copy/mv/get (#1381 step 3) #1403

Closed

Description

@laughingman7743

Part of #1381 (step 3 of 4). Builds on step 2 (#1402).

Current state (758adee)

Take the literal keys a/x and a/x?versionId=null in an unversioned bucket.

copy("bucket/a", "bucket/b", recursive=True):

  • The sync version raises ValueError: Cannot copy several paths to the same destination.
  • The async version copies a/x, then raises ValueError: Cannot copy to a versioned file.

copy("bucket/a/*", "bucket/c/") fails the same way. Its directory check also looks up a/x version null.

mv("bucket/a", "bucket/b", recursive=True) raises ValueError: Cannot move several paths to the same destination.

get("bucket/a", "out", recursive=True):

  • The sync version raises ValueError: Cannot get several paths to the same destination.
  • The async version writes a/x version null to out/x?versionId=null.

With only the key a/x?versionId=v1, a recursive get raises FileNotFoundError. get_file opens the path, and S3FileTarget.resolve parses it again.

Scope

  1. S3PathPairing compares typed paths. Its S3 destinations are built as follows:
    • A destination is the parsed destination root plus the literal suffix of the source.
    • A versioned destination root is rejected.
    • The items of a destination list are parsed one by one.
    • Destinations are converted before the conflict checks.
  2. copy, mv and get act on typed paths, on both filesystems.
    • The directory checks and conflict lookups of copy are covered.
    • So is get_file → open → S3FileTarget.
    • fsspec's batch schedulers, _S3BatchTasks, the on_error semantics, and the string callback labels are kept.

Activity

  1. changed the title [-]Type generated put destinations and document path addressing limits (#1381 step 3)[/-] [+]Act on listed identities in pairing and copy/mv/get (#1381 step 3)[/+] on Nov 13, 2026
  2. added 2 commits that reference this issue on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions