diff --git a/fs_gcsfs/_gcsfs.py b/fs_gcsfs/_gcsfs.py index 6c869bf..fc9653d 100644 --- a/fs_gcsfs/_gcsfs.py +++ b/fs_gcsfs/_gcsfs.py @@ -70,6 +70,8 @@ def __init__(self, if not root_path: root_path = "" self.root_path = root_path + if self.root_path.endswith("/"): + raise ValueError("root_path must not end with a slash") self._prefix = relpath(normpath(root_path)).rstrip(self.DELIMITER) self.strict = strict