Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DATA-3698: fix weird file path behavior with export #4777

Merged
merged 3 commits into from
Feb 6, 2025

Conversation

gloriacai01
Copy link
Member

If user wants to upload an arbitrary file with a filepath that contains a /.viam/capture/ in the middle, ie Users/gloriacai/.viam/capture/123, it would download as data/Users/gloriacai123. This PR fixes this missing backslash issue and removes the preceding directories for the /.viam/capture/ case.

Testing:

  • added some testcases with nested ./viam/capture directories
  • uploaded a file with filepath Users/gloriacai/.viam/capture/123, ran go run cli/viam/main.go data export binary --destination="." --start=2025-02-06T14:00:00Z and checked that the file downloaded directly inside the data folder.

@gloriacai01 gloriacai01 requested a review from dmhilly February 6, 2025 20:09
@viambot viambot added the safe to test This pull request is marked safe to test from a trusted zone label Feb 6, 2025
Copy link
Member

@dmhilly dmhilly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Nice work Gloria 🎉

@gloriacai01 gloriacai01 merged commit e1f9427 into viamrobotics:main Feb 6, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test This pull request is marked safe to test from a trusted zone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants