Re: [Rest2web-develop] Bug & feature request about file keyword in restindex
Brought to you by:
mjfoord
From: Fuzzyman <fuz...@vo...> - 2006-01-30 08:51:11
|
Andrew Ittner wrote: >Fuzzyman: > >Regarding the timestamp, make 2 calls: >shutil.copyfile(src, dest) >shutil.copystat(src, dest) > > Hello Andrew, Thanks. I'll get it to compare timestamp *and* size, and will make the change above. Expect this to get into SVN in the next few days. All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml >The second method should (according to the docs) "Copy the permission bits, >last access time, and last modification time from src to dest. The file >contents, owner, and group are unaffected." > >Andrew > > > >>-----Original Message----- >>From: res...@li... >>[mailto:res...@li...]On Behalf Of >>Fuzzyman >>Sent: Sunday, January 29, 2006 9:01 AM >>To: res...@li... >>Subject: Re: [Rest2web-develop] Bug & feature request about file keyword >>in restindex >> >> >>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 >> >> > > > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 >_______________________________________________ >Rest2web-develop mailing list >Res...@li... >https://lists.sourceforge.net/lists/listinfo/rest2web-develop > > > |