Skip to content

Commit

Permalink
fix bug with upload return path
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Sep 4, 2024
1 parent 6fe6db3 commit 534d674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vision_agent/utils/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 534d674

Please sign in to comment.