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

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

Comments

Projects
None yet
3 participants
Contributor

robwierzbowski commented Jul 11, 2013

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.

Owner

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.

Contributor

robwierzbowski commented Jul 12, 2013

Referencing the site destination issue: mojombo#1184

@parkr parkr closed this in 72c4103 May 30, 2014

Contributor

robwierzbowski commented May 30, 2014

Woohoo! 🍸 🚀 🌟

@jekyllbot jekyllbot 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.