ludovicchabant/PieCrust — Issue #18: Page/post assets can not contain directories
Author: rubenvincenten
Created: 2011-11-26 17:54:12+00:00
State: open

When I have a page called `_content/bla.html` and I have an image in `_content/bla-assets/images/dump.png` I get the following error:

~~~

Error: Error baking page 'bla' (p1): Can't copy '/Users/rubenvincenten/Sites/rubenvincenten.nl/_content/pages/bla-assets/images' to '/Users/rubenvincenten/Sites/rubenvincenten.nl/_counter/bla/images'.

Debug Information
-----------------
#0 /Users/rubenvincenten/PieCrust/_piecrust/src/PieCrust/Baker/PieCrustBaker.php(363): PieCrust\Baker\PageBaker->bake(Object(PieCrust\Page\Page))
#1 /Users/rubenvincenten/PieCrust/_piecrust/src/PieCrust/Baker/PieCrustBaker.php(332): PieCrust\Baker\PieCrustBaker->bakePage('/Users/rubenvin...')
#2 /Users/rubenvincenten/PieCrust/_piecrust/src/PieCrust/Baker/PieCrustBaker.php(293): PieCrust\Baker\PieCrustBaker->bakePages()
#3 /Users/rubenvincenten/PieCrust/_piecrust/src/PieCrust/Chef/Commands/BakeCommand.php(127): PieCrust\Baker\PieCrustBaker->bake()
#4 /Users/rubenvincenten/PieCrust/_piecrust/src/PieCrust/Chef/Chef.php(86): PieCrust\Chef\Commands\BakeCommand->run(Object(Console_CommandLine), Object(Console_CommandLine_Result))
#5 /Users/rubenvincenten/PieCrust/_piecrust/piecrust.php(150): PieCrust\Chef\Chef->run(NULL, NULL)
#6 /Users/rubenvincenten/PieCrust/_piecrust/chef.php(6): piecrust_chef()
#7 {main}
-----------------
#0 /Users/rubenvincenten/PieCrust/_piecrust/src/PieCrust/Baker/PageBaker.php(79): PieCrust\Baker\PageBaker->bakeSinglePage(Object(PieCrust\Page\PageRenderer), NULL, NULL)
#1 /Users/rubenvincenten/PieCrust/_piecrust/src/PieCrust/Baker/PieCrustBaker.php(363): PieCrust\Baker\PageBaker->bake(Object(PieCrust\Page\Page))
#2 /Users/rubenvincenten/PieCrust/_piecrust/src/PieCrust/Baker/PieCrustBaker.php(332): PieCrust\Baker\PieCrustBaker->bakePage('/Users/rubenvin...')
#3 /Users/rubenvincenten/PieCrust/_piecrust/src/PieCrust/Baker/PieCrustBaker.php(293): PieCrust\Baker\PieCrustBaker->bakePages()
#4 /Users/rubenvincenten/PieCrust/_piecrust/src/PieCrust/Chef/Commands/BakeCommand.php(127): PieCrust\Baker\PieCrustBaker->bake()
#5 /Users/rubenvincenten/PieCrust/_piecrust/src/PieCrust/Chef/Chef.php(86): PieCrust\Chef\Commands\BakeCommand->run(Object(Console_CommandLine), Object(Console_CommandLine_Result))
#6 /Users/rubenvincenten/PieCrust/_piecrust/piecrust.php(150): PieCrust\Chef\Chef->run(NULL, NULL)
#7 /Users/rubenvincenten/PieCrust/_piecrust/chef.php(6): piecrust_chef()
#8 {main}
~~~