Skip to content

Commit a0206d9

Browse files
committed
test fixes
1 parent c142a4f commit a0206d9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

s3fs/_s3fs.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)