Crash if directory and file with same name collide #81

Closed
mrflip opened this Issue Aug 24, 2009 · 3 comments

Comments

Projects
None yet
4 participants

mrflip commented Aug 24, 2009

Suppose my template contains a directory:

index.html
install/usage.textile
install/dependencies.textile
_site/index.html
_site/install/usage.textile
_site/install/dependencies.textile

and I later rename / rearrange the files -- Since jekyll doesn't clear out orphaned files from _site,

index.html
config/usage.textile
config/dependencies.textile
_site/index.html
_site/config/usage.textile
_site/config/dependencies.textile
_site/install/usage.textile
_site/install/dependencies.textile

If I now add a file named 'install' jekyll will be unable to compile because the destination file and the directory '_site/install' collide.

This is no big deal on a local install, but can cause problems in a server environment: http://support.github.com/discussions/repos/1202-pages-doesnt-clear-out-cruft

Hm, after this commit c1ed790
it's will be ok?

Owner

parkr commented Dec 8, 2012

@mrflip, still a problem for you?

Owner

parkr commented Jan 2, 2013

Fixed in 5b680f8.

@parkr parkr closed this Jan 2, 2013

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