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

Storing data during development in a different location #5147

Open
2 tasks done
andydotxyz opened this issue Sep 16, 2024 · 1 comment
Open
2 tasks done

Storing data during development in a different location #5147

andydotxyz opened this issue Sep 16, 2024 · 1 comment

Comments

@andydotxyz
Copy link
Member

Checklist

  • I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
  • This issue only relates to a single feature. I will open new issues for any other features.

Is your feature request related to a problem?

To avoid corruption of data there should be a standard way to avoid overwriting production data / preferences

Is it possible to construct a solution with the existing API?

Not easily, as the appID is the key and it is set in the app init

Describe the solution you'd like to see.

Potentially adding "-develop" or similar to the end of a key automatically (or on a flag?) could avoid this problem.

Not sure if this is always desirable so open to discussion.

@sdassow
Copy link
Contributor

sdassow commented Sep 25, 2024

Like a way to change Storage().RootURI()?

I'm currently using that as default directory, with a flag to change to another directory for testing (all file paths are relative).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants