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 2, 2024
1 parent 15aac74 commit b791a1f
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 "r" in self.mode or "w" in self.mode

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

Expand Down

0 comments on commit b791a1f

Please sign in to comment.