#
addons @
Zap (zap@z.macgirvin.com) Context
An addon calls a python script as backend. The backend changes the content of some files under webserver-root/store/nick.
Problem
The file attributes in the database (subsequently in /cloud/ ) are not updated
What I tried?
I looked at the class Code/Storage/File.php
Question 1)
I woud go for...
- check wether the python script has finished (this has been accomplished for some other reasons)
- check compare the modified time of the file under storage/nick/ with the "edited" timestamp in the database
- update "edited" and "filesize" if needed
Is there any better approach?
Question 2)
Might it be usefull to implement a function "touch" in Code/Storage/File.php?