We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7270708 commit 4e2afcaCopy full SHA for 4e2afca
upath/tests/implementations/test_s3.py
@@ -113,3 +113,14 @@ def s3_with_plus_chr_name(s3_server):
113
for dir, _, keys in s3.walk(bucket):
114
for key in keys:
115
s3.rm(f"{dir}/{key}")
116
+
117
118
+def test_path_with_hash_and_space():
119
+ assert "with#hash and space" in UPath("s3://bucket/with#hash and space/abc").parts
120
121
122
+def test_pathlib_consistent_join():
123
+ b0 = UPath("s3://mybucket/withkey/").joinpath("subfolder/myfile.txt")
124
+ b1 = UPath("s3://mybucket/withkey").joinpath("subfolder/myfile.txt")
125
+ assert b0 == b1
126
+ assert "s3://mybucket/withkey/subfolder/myfile.txt" == str(b0) == str(b1)
0 commit comments