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

Directories in keep_files are cleaned if their parent is empty #1297

Closed
robwierzbowski opened this issue Jul 11, 2013 · 3 comments
Closed

Directories in keep_files are cleaned if their parent is empty #1297

robwierzbowski opened this issue Jul 11, 2013 · 3 comments

Comments

@robwierzbowski
Copy link

For example, if I

  1. create a directory assets/generated in _site, and fill it with files
  2. add assets/generated to keep_files
  3. do not create an assets directory in the Jekyll source directory, or create one but leave it empty
  4. run jekyll build

the directory assets/generated is cleaned.

I'm not sure the best way to handle this. We wouldn't want to keep parent directory files if there were any, but we want to prevent the assets from being removed if assets/generated is listed in keep_files.

@parkr
Copy link
Member

parkr commented Jul 11, 2013

We're having the same problem with watching where a destination is a subdirectory of a subdirectory. We need to walk up until source and keep the folders there but delete the files.

@robwierzbowski
Copy link
Author

Referencing the site destination issue: #1184

@robwierzbowski
Copy link
Author

Woohoo! 🍸 🚀 🌟

@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants