@@ -78,7 +78,6 @@ def __exit__(self, exc_type, exc_value, traceback):
7878 self .close
7979
8080 def close (self ):
81- print ("Close" )
8281 if self ._on_close is not None :
8382 self ._on_close (self ._f )
8483
@@ -274,7 +273,7 @@ def listdir(self, path):
274273
275274 return _directory
276275
277- def makedir (self , path , permission = None , recreate = False ):
276+ def makedir (self , path , permissions = None , recreate = False ):
278277 self .check ()
279278 _path = self .validatepath (path )
280279 _key = self ._path_to_dir_key (_path )
@@ -350,7 +349,7 @@ def remove(self, path):
350349 info = self .getinfo (_path )
351350 if info .is_dir :
352351 raise errors .FileExpected (path )
353- self .client .delete_bucket (
352+ self .client .delete_object (
354353 Bucket = self ._bucket_name ,
355354 Key = _key
356355 )
@@ -381,7 +380,7 @@ def removedir(self, path):
381380 raise errors .DirectoryExpected (path )
382381 if not self .isempty (path ):
383382 raise errors .DirectoryNotEmpty (path )
384- self .client .delete_bucket (
383+ self .client .delete_object (
385384 Bucket = self ._bucket_name ,
386385 Key = _key
387386 )
0 commit comments