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

ask for file overwrite on sd card #269

Merged
merged 1 commit into from
Apr 13, 2024

Conversation

stepansnigirev
Copy link
Collaborator

Close #252

Copy link

netlify bot commented Dec 10, 2023

Deploy Preview for specter-diy-docs ready!

Name Link
🔨 Latest commit 8133f53
🔍 Latest deploy log https://app.netlify.com/sites/specter-diy-docs/deploys/6575de3392f34400080d49b0
😎 Deploy Preview https://deploy-preview-269--specter-diy-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

if not platform.is_sd_present():
raise KeyStoreError("SD card is not present")
platform.mount_sdcard()
platform.sdcard.mount()

if platform.file_exists(fullpath):
Copy link
Contributor

Choose a reason for hiding this comment

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

@stepansnigirev "File already exists" and "Would you like to overwrite this file?" feels a bit too weak here as a warning for potentially overwriting a seed by accident. Looks to me that we can safely assume that the user is overwriting a seed here with this check: if platform.file_exists(fullpath)

What do you think?

@stepansnigirev stepansnigirev merged commit 52fb5a6 into cryptoadvance:master Apr 13, 2024
5 checks passed
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

Successfully merging this pull request may close these issues.

No safety checks for file overwriting
2 participants