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

Overwrite protection for static files generator #3097

Open
3 tasks done
fornib opened this issue Feb 7, 2023 · 1 comment
Open
3 tasks done

Overwrite protection for static files generator #3097

fornib opened this issue Feb 7, 2023 · 1 comment
Assignees

Comments

@fornib
Copy link

fornib commented Feb 7, 2023

  • I have searched the issues (including closed ones) and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.
  • I am willing to lend a hand to help implement this feature.

Feature Request

When there is mixed content in the same directory, static files may overwrite generated pages without warning.
This is undesirable, as you may not notice the lost information.

I propose to at least check writer._written_files before copying/linking static files and, if overwriting, just print a warning (without raising RuntimeError, as it would break existing websites).

@justinmayer
Copy link
Member

Related issue from a decade ago: #446

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

No branches or pull requests

3 participants