Skip to content

Commit

Permalink
Implement io.IOBase.seekable method
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmlnkn committed Oct 3, 2024
1 parent 15aac74 commit c38daa0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sshfs/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ async def _open_file(self):
def readable(self):
return "r" in self.mode

def seekable(self):
return True

def writable(self):
return not self.readable()

Expand Down

0 comments on commit c38daa0

Please sign in to comment.