Fix: Ensure correct "upload date" for all added files

Local file storage implementation will now "touch" added files to set
modification date to current date, ensuring that files that are just
moved through a custom implementation of file object (e.g. through the
watched folder mechanism) will show with "now" as the upload date.
(cherry picked from commit 5f0c89c)
This commit is contained in:
Gina Häußge 2015-06-29 10:34:55 +02:00
parent 016bdd542a
commit 1ead6e2d20

View file

@ -455,6 +455,9 @@ class LocalFileStorage(StorageInterface):
self._add_links(name, path, links)
# touch the file to set last access and modification time to now
os.utime(file_path, None)
return self.path_in_storage((path, name))
def remove_file(self, path):