File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1113,9 +1113,7 @@ def rmdir(self, path=None):
1113
1113
raise ReadOnlyError ()
1114
1114
store_path = self .dir_path (path )
1115
1115
if self .fs .isdir (store_path ):
1116
- # sometimes doesn't delete on first try with S3
1117
- while self .fs .exists (store_path ):
1118
- self .fs .rm (store_path , recursive = True )
1116
+ self .fs .rm (store_path , recursive = True )
1119
1117
1120
1118
def getsize (self , path = None ):
1121
1119
store_path = self .dir_path (path )
Original file line number Diff line number Diff line change @@ -1030,7 +1030,8 @@ def s3(request):
1030
1030
pass
1031
1031
timeout -= 0.1 # pragma: no cover
1032
1032
time .sleep (0.1 ) # pragma: no cover
1033
- s3so = dict (client_kwargs = {'endpoint_url' : endpoint_uri })
1033
+ s3so = dict (client_kwargs = {'endpoint_url' : endpoint_uri },
1034
+ use_listings_cache = False )
1034
1035
s3 = s3fs .S3FileSystem (anon = False , ** s3so )
1035
1036
s3 .mkdir ("test" )
1036
1037
request .cls .s3so = s3so
You can’t perform that action at this time.
0 commit comments