Commit 92ec14fd by Timothée Peignier

allow storage to overwrite files

parent e807d4c8
......@@ -16,6 +16,11 @@ class PipelineStorage(FileSystemStorage):
base_url = settings.PIPELINE_URL
super(PipelineStorage, self).__init__(location, base_url, *args, **kwargs)
def get_available_name(self, name):
if self.exists(name):
self.delete(name)
return name
def accessed_time(self, name):
return datetime.fromtimestamp(os.path.getatime(self.path(name)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment