| filsa.net: Frontier Scripting [ Script Archive | Ideas & Issues | Polyglot | Software | Projects ] |
|
|
FileWriters QuestionsIdeas for discussionIn 5.0.2, there's a wonderful feature called Filewriters.FileWriters allow you to save your html anywhere--locally, remotely, in the ODB, into a SQL database, anything. Basically, whenever the HTML framework wrote a file to disk, that's been abstracted out to go through the filewriters system. I'm starting to use it for some of my macros that write files to disk. html.fileExists ()? Some of my macros have caching--i.e., the look to disk to see if the file exists, then checks the last modification date to determine whether it needs to but updated or not. (I use file.exists(f) to determine this) But when I use html.writeFile, there may not be a file on disk. Or the file on disk may have no relation to the latest written object, because it may have been written to another system (like the odb or whatever). The question is, how can I determine if the file exists or the last mod date of an 'object' that has been written through the filewriters system? Will there be a way to check, and will filewriters need an additional script to provide "exists" and "last modified" functionality? filewriters Extensions Maybe, in addition to shutdown, startup, and write, we could add (make this optional?) two more methods for each filewriter: exists () and timeModified (). Comments to the Script Meridian Community list.
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This is Phil's Frontier Scripting Site. San Francisco, CA |
| filsa.net: Frontier Scripting [ Script Archive | Ideas & Issues | Polyglot | Software | Projects ] |