diff --git a/vision_agent/utils/execute.py b/vision_agent/utils/execute.py index 33667f17..0de10335 100644 --- a/vision_agent/utils/execute.py +++ b/vision_agent/utils/execute.py @@ -644,7 +644,7 @@ def upload_file(self, file_path: Union[str, Path]) -> Path: f.write(contents) _LOGGER.info(f"File ({file_path}) is uploaded to: {str(self.remote_path)}") - return Path(self.remote_path / file_path) + return Path(self.remote_path / Path(file_path).name) def download_file( self, remote_file_path: Union[str, Path], local_file_path: Union[str, Path]