Re: [Rest2web-develop] Bug & feature request about file keyword in restindex
Brought to you by:
mjfoord
From: Fuzzyman <fuz...@vo...> - 2006-01-29 17:00:50
|
Andrew Ittner wrote: > (This e-mail started as part of a private exchange; per Fuzzyman's request > I'm posting it to the dev list.) > > [files get copied on every build] > [snip..] > > I can get rest2web to check the compare directory first though. Should it > check file contents or just the timestamp ? > Me: > Have it check the timestamp. I don't see a need to compare file contents > just yet - and that may be unnecessary anyway, as I can always dump the file > into the output directory without using rest2web. > > But if copying the file changes the timestamp... then it will compare differently each time. (I use ``shutil.copyfile`` I *think*.) Perhaps comparing contents is the thing to do... The other issue definitely smells like a bug. I'll fix it. :-) Thanks for the feedback. Fuzzyman http://www.voidspace.org.uk/python/index.shtml |