diff --git a/src/snowflake/cli/_plugins/stage/manager.py b/src/snowflake/cli/_plugins/stage/manager.py index b0aff983fa..71b4e18cdd 100644 --- a/src/snowflake/cli/_plugins/stage/manager.py +++ b/src/snowflake/cli/_plugins/stage/manager.py @@ -143,11 +143,11 @@ def __init__(self, stage_path: str): @property def path(self) -> str: - return f"{self.stage_name.rstrip('/')}/{self.directory}" + return f"{self.stage_name.rstrip('/')}/{self.directory}".rstrip("/") @property def full_path(self) -> str: - return f"{self.stage.rstrip('/')}/{self.directory}" + return f"{self.stage.rstrip('/')}/{self.directory}".rstrip("/") @property def schema(self) -> str | None: @@ -201,7 +201,7 @@ def path(self) -> str: @property def full_path(self) -> str: - return f"{self.stage}/{self.directory}" + return f"{self.stage}/{self.directory}".rstrip("/") def replace_stage_prefix(self, file_path: str) -> str: if Path(file_path).parts[0] == self.stage_name: