File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -213,11 +213,11 @@ def exists(self, path_info):
213
213
return path_info .path == fname or fname .startswith (dir_path .path )
214
214
215
215
def makedirs (self , path_info ):
216
- # We need to support creating empty directories, on S3, that means
216
+ # We need to support creating empty directories, which means
217
217
# creating an object with an empty body and a trailing slash `/`.
218
218
#
219
219
# We are not creating directory objects for every parent prefix,
220
- # it doesn't make sense .
220
+ # as it is not required .
221
221
dir_path = path_info / ""
222
222
self .s3 .put_object (Bucket = path_info .bucket , Key = dir_path .path , Body = "" )
223
223
Original file line number Diff line number Diff line change @@ -103,8 +103,8 @@ def test_copy_preserve_etag_across_buckets(remote):
103
103
assert from_etag == to_etag
104
104
105
105
106
- def makedirs (remote ):
107
- empty_dir = remote .path_info / "empty_dir"
106
+ def test_makedirs (remote ):
107
+ empty_dir = remote .path_info / "empty_dir" / ""
108
108
remote .remove (empty_dir )
109
109
assert not remote .exists (empty_dir )
110
110
remote .makedirs (empty_dir )
You can’t perform that action at this time.
0 commit comments