From 534d674114c4429a0012919837a9613fa7fcbcb6 Mon Sep 17 00:00:00 2001 From: Dillon Laird Date: Tue, 3 Sep 2024 20:32:43 -0700 Subject: [PATCH] fix bug with upload return path --- vision_agent/utils/execute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]