Closed rockymeza closed 12 years ago
yeah, I'm using fnmatch
everywhere is deliberate, but in your case fnmatch
just doesn't match when you include paths unless you start with a *
:
>>> fnmatch('rockymeza.com/_site/static/css/rockymeza.css', '*.css')
True
>>> fnmatch('rockymeza.com/_site/static/css/rockymeza.css', 'static/*.css')
False
>>> fnmatch('rockymeza.com/_site/static/css/rockymeza.css', '/static/*.css')
False
>>> fnmatch('/Users/colinta/Code/html/rockymeza.com/_site/static/css/rockymeza.css', '*/static/*.css')
True
But the bug was with removing non-empty folders, and that's been fixed with v3.1.1
I have a
deploy_path
of_site
. I have files in_site/static
that I want StrangeCase to ignore.I tried several things:
The only one that works is this:
However, StrangeCase still attempts to delete the directory, which results in a failure.