Closed bgt-cdedels closed 2 years ago
If you have an object in s3 with an + character in the prefix, iterdir creates incorrect paths.
from upath import UPath for in_path in UPath("s3://my_bucket/manual__2022-02-19T14:31:25.891270+00:00/dir").iterdir(): print(in_path)
The actual output is: s3://my_bucket/manual__2022-02-19T14:31:25.891270+00:00/dir/my_bucket/manual__2022-02-19T14:31:25.891270+00:00/dir/file1
s3://my_bucket/manual__2022-02-19T14:31:25.891270+00:00/dir/my_bucket/manual__2022-02-19T14:31:25.891270+00:00/dir/file1
The expected output is: s3://my_bucket/manual__2022-02-19T14:31:25.891270+00:00/dir/file1
s3://my_bucket/manual__2022-02-19T14:31:25.891270+00:00/dir/file1
If you have an object in s3 with an + character in the prefix, iterdir creates incorrect paths.
The actual output is:
s3://my_bucket/manual__2022-02-19T14:31:25.891270+00:00/dir/my_bucket/manual__2022-02-19T14:31:25.891270+00:00/dir/file1
The expected output is:
s3://my_bucket/manual__2022-02-19T14:31:25.891270+00:00/dir/file1