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

Be paranoid about clearing media before copying when exporting #213

Merged
merged 1 commit into from
Sep 15, 2024

Conversation

aplaice
Copy link
Collaborator

@aplaice aplaice commented Sep 15, 2024

elsewhere.

"""
unsafe_dirs = [Path.home()]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why end the paranoia there? 😁 include '/' and '' too!

Copy link
Collaborator Author

@aplaice aplaice Sep 15, 2024

Choose a reason for hiding this comment

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

Thanks so much for reviewing/approving! :)

That was the initial version, but had thought that if somebody is using Anki as root then either:

  1. they're running in docker, for testing (?), so likely don't have anything too valuable at "/"
  2. they like living on the edge, so I don't want to spoil their experience. :)

(Unlike HOME it also doesn't help on Windows, where I have no idea what the appropriate paths would be.)

OTOH it doesn't hurt, so I've added it back in! :)

@aplaice aplaice merged commit db2fdf2 into Stvad:master Sep 15, 2024
2 checks passed
@aplaice aplaice deleted the paranoia branch September 15, 2024 13:54
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.

2 participants