Skip to content

Commit 9b44f0d

Browse files
author
Martin Durant
committed
fix
1 parent 3c9b694 commit 9b44f0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

s3fs/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,8 +1377,8 @@ def __init__(self, s3, path, mode='rb', block_size=5 * 2 ** 20, acl="",
13771377
# In this case we have not managed to get the VersionId out of details and
13781378
# we should invalidate the cache and perform a full head_object since it
13791379
# has likely been partially populated by ls.
1380-
self.fs.invalidate_cache(self.path)
1381-
self.details = s3.info(self.path)
1380+
s3.invalidate_cache(path)
1381+
self.details = s3.info(path)
13821382
self.version_id = self.details.get('VersionId')
13831383
super().__init__(s3, path, mode, block_size, autocommit=autocommit,
13841384
cache_type=cache_type)

0 commit comments

Comments
 (0)