You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Type generated put destinations and document path addressing limits (#1381 step 4) #1404
put("x?versionId=v1", "bucket/up/") raises ValueError: Cannot write to the file with the version specified.
The local file name ends in what looks like a version query. put builds the destination bucket/up/x?versionId=v1, which is then parsed as a version. The async _put builds its destinations through the same _put_pairs.
Scope
The S3 destinations that put and _put build from local names are typed addresses. The suffix taken from a local name is never parsed for a version.
A key that looks like a version path cannot be addressed by a string path. S3Core reaches it with an explicit S3Path. There is no escape syntax.
bucket// names the key / for single-object operations and the bucket for listings. A recursive chmod of it does not change the bucket ACL.
S3Path(bucket, "") is the bucket path.
Some compositions still go through strings and do not keep this identity. Examples are fsspec's open_files, FSMap, and the strings of find(), ls() and expand_path() passed back in.
Carried over from the review of #1421 (step 3), for this step:
Typed file paths.S3File and S3FileTarget.resolve() now accept an S3Path. The file's path is the string of that S3Path, so a file opened for a key such as a/x?versionId=null without a version has a path string that names the null version of a/x.
sign(), metadata(), getxattr() and setxattr() of such a file look up self.path as a string.
Either give those methods the file's bucket, key and version, or document them as limits of string addressing.
Typed write modes. The "wb", "ab" and "xb" modes of a typed path go through info(), cat_file() and _object_exists(), which accept an S3Path since Act on listed identities in pairing and copy/mv/get (GH-1403) #1421, but nothing exercises them yet. put() destinations will, so add their tests here.
Activity
laughingman7743 commentedon Nov 16, 2026
Carried over from the review of #1421 (step 3), for this step:
S3FileandS3FileTarget.resolve()now accept anS3Path. The file'spathis the string of thatS3Path, so a file opened for a key such asa/x?versionId=nullwithout a version has a path string that names thenullversion ofa/x.sign(),metadata(),getxattr()andsetxattr()of such a file look upself.pathas a string.fs.open(self.path).get_file()opens a typed path, in"rb", and calls none of these."wb","ab"and"xb"modes of a typed path go throughinfo(),cat_file()and_object_exists(), which accept anS3Pathsince Act on listed identities in pairing and copy/mv/get (GH-1403) #1421, but nothing exercises them yet.put()destinations will, so add their tests here.Address files by their paths and keep async callbacks unlocked (GH-1404)
Type put destinations and document path addressing (GH-1404)
Address files by their paths and keep async callbacks unlocked (GH-1404)
Compare the put destinations of the directory test as strings (GH-1404)
Check versioned roots only for files and branch through branch_coro (G…
Join the batch before a callback's branch_coro() runs a transfer (GH-…
Type put destinations and document path addressing (GH-1404)
Address files by their paths and keep async callbacks unlocked (GH-1404)
Compare the put destinations of the directory test as strings (GH-1404)
Check versioned roots only for files and branch through branch_coro (G…
Join the batch before a callback's branch_coro() runs a transfer (GH-…
Wrap every transfer before any runs, as fsspec does (GH-1404)