~overlordtm/duplicity/koofr

« back to all changes in this revision

Viewing changes to duplicity/backends/koofrbackend.py

  • Committer: Andraz Vrhovec
  • Date: 2015-04-01 10:19:31 UTC
  • Revision ID: andraz@vrhovec.si-20150401101931-ahl3kmrdes3za51z
Remove before put to avoid duplicate uploads

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
            pass
80
80
 
81
81
    def _put(self, source_path, remote_filename):
 
82
        try:
 
83
            self.client.files_remove(self.mount_id, posixpath.join(self.dir, remote_filename))
 
84
        except:
 
85
            pass
82
86
        with open(source_path.name, "rb") as f:
83
87
            self.client.files_put(self.mount_id, posixpath.join(self.dir, remote_filename), f)
84
88