Skip to content

Conversation

@gabrieldeal
Copy link
Contributor

This is a quick hack I did to move ahead. I am not sure this is the best way to fix the issue. Also, this seems like such a bad issue that I wonder if there was something wrong with my data that caused it.

Do not copy files or directories whose names start with wp-jekyll-*. This prevents infinite recursion when copying everything under wp-content/uploads by excluding Jekyll Exporter's output directory. This also prevents copying the output of previous Jekyll Exporter runs.

Without this, my attempts to run Jekyll Exporter end up creating files like the below and eventually timeout.

wp-content/uploads/wp-jekyll-736e13f6e4555fc2ef3ddef3bd223443/wp-content/uploads/wp-jekyll-736e13f6e4555fc2ef3ddef3bd223443/wp-content/uploads/wp-jekyll-736e13f6e4555fc2ef3ddef3bd223443/wp-content/uploads/wp-jekyll-736e13f6e4555fc2ef3ddef3bd223443/wp-content/uploads/2018/07/00036-_DSC2797-enl-300x200.jpg

Do not copy files or directories whose names start with `wp-jekyll-*`. This prevents infinite recursion when copying everything under `wp-content/uploads` by excluding Jekyll Exporter's output directory. This also prevents copying the output of previous Jekyll Exporter runs.

Without this, my attempts to run Jekyll Exporter end up creating files like the below and eventually timeout.
> wp-jekyll-736e13f6e4555fc2ef3ddef3bd223443/wp-content/uploads/wp-jekyll-736e13f6e4555fc2ef3ddef3bd223443/wp-content/uploads/wp-jekyll-736e13f6e4555fc2ef3ddef3bd223443/wp-content/uploads/wp-jekyll-736e13f6e4555fc2ef3ddef3bd223443/wp-content/uploads/2018/07/00036-_DSC2797-enl-300x200.jpg
@welcome
Copy link

welcome bot commented Jan 17, 2020

Welcome! Congrats on your first pull request to WordPress To Jekyll Exporter. If you haven't already, please be sure to check out the contributing guidelines.

@benbalter benbalter merged commit a101748 into benbalter:master Jan 20, 2020
@welcome
Copy link

welcome bot commented Jan 20, 2020

Congrats on getting your first pull request to WordPress To Jekyll Exporter merged! Without amazing humans like you submitting pull requests, we couldn’t run this project. You rock! 🎉

If you're interested in tackling another bug or feature, take a look at the open issues, especially those labeled help wanted.

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