From b791a1f734b6de5f63622483e2333468a8ebc810 Mon Sep 17 00:00:00 2001 From: mxmlnkn Date: Wed, 2 Oct 2024 18:05:15 +0200 Subject: [PATCH] Implement io.IOBase.seekable method --- sshfs/file.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sshfs/file.py b/sshfs/file.py index 349f64d..5187d5b 100644 --- a/sshfs/file.py +++ b/sshfs/file.py @@ -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()