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

Workaround for renaming issue on Windows #34

Closed
wants to merge 1 commit into from

Conversation

anantakrishna
Copy link

On Windows, renaming directoryA to directoryB throws an EPERM error if directoryB exists, even if it's empty. More details in nodejs/node#21957 (comment).

This workaround removes the tmp folder before renaming outputDir to it. We cannot eliminate the preceding mkdir because it creates all the parent folders if needed.

Fixes #22, #32.

@KiwiKilian
Copy link
Contributor

I'm closing this PR as similar changes landed through #46. Would be awesome to here, if the problem is fixed. Feel free to reach out in #22 if the problem still persists with the alpha.

@KiwiKilian KiwiKilian closed this Jun 30, 2024
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.

11ty gives EPERM error when trying to rename _site to .11ty-vite
2 participants