Skip to content

use safeRemoveDirSync when possible to avoid unexpected catastrophic directory deletions #11455

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

Merged
merged 2 commits into from
Nov 15, 2024

Conversation

cscheid
Copy link
Collaborator

@cscheid cscheid commented Nov 15, 2024

Closes #7998.

Note that Quarto will still fail to compile this because the parent directory configuration causes Quarto to attempt to cp -r a directory to a subdirectory of itself, which is nonsense. But at least we will refuse to rm -r project directories by accident.

@cscheid cscheid merged commit 2507116 into main Nov 15, 2024
@cscheid cscheid deleted the bugfix/7998 branch November 15, 2024 21:15
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.

quarto book project + wrong config == render trashes entire directory
1 participant