Re: [Rest2web-develop] Doesn't r2w create destination directories?
Brought to you by:
mjfoord
From: Michael F. <ar...@vo...> - 2007-04-01 23:22:55
|
Chris G wrote: > On Fri, Mar 30, 2007 at 02:29:21PM +0100, Chris G wrote: > >> This may seem to be a rather basic question! >> >> I've been using r2w for a while but I've only just tried to create a >> new destination hierarchy. Previously I'd been regenerating existing >> hierarchies (e.g. the r2w 'docs_html' one) or I was working with r2w's >> destination set the same as the source so the .html files were put in >> the same directories as the .txt files. >> >> Now I've changed the destination so that it's a new directory in >> /var/www/htdocs and r2w.py fails with a "No such file or directory" >> for the first level of subdirectory under /var/www/htdocs. >> >> Have I really got to create the destination hierarchy manually (or at >> least write a script to do it)? >> >> > A little further checking and I think I see what's happening. > > I'm using "r2w.py -f". If a source directory contains no *.txt files > then I get the "No such file or directory" for the corresponding > destination directory. Presumably it doesn't create the destination > because there are no files to put there, and then it tries to create > the default index.html file and there's no directory. At least that's > what it looks like. > I suspect you are right - in which case it is a bug that needs fixing. Thanks for the report. Fuzzyman http://www.voidspace.org.uk/python/articles.shtml |