From cf74efe92bd3017c4e01f45c1dd80c23f1e62a1b Mon Sep 17 00:00:00 2001 From: Ryan Despain <2043940+ryaminal@users.noreply.github.com> Date: Tue, 16 Apr 2024 20:18:22 -0600 Subject: [PATCH] info call should strip the path This is based on some pain points i was having and looking at other FS impls. --- sshfs/spec.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sshfs/spec.py b/sshfs/spec.py index 954c7bd..88b610d 100644 --- a/sshfs/spec.py +++ b/sshfs/spec.py @@ -137,6 +137,7 @@ def _decode_attributes(self, attributes): @wrap_exceptions async def _info(self, path, **kwargs): + path = self._strip_protocol(path) async with self._pool.get() as channel: attributes = await channel.stat(path)