~matthew-t-bentley/duplicity/b2

« back to all changes in this revision

Viewing changes to duplicity/backends/b2backend.py

  • Committer: Matthew Bentley
  • Date: 2015-12-08 23:30:08 UTC
  • Revision ID: matthew@mtbentley.us-20151208233008-59xp7i2901y7x5vh
Allow multiple backups in the same bucket

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
        except urllib2.HTTPError:
132
132
            return []
133
133
 
134
 
        files = [x['fileName'].split('/')[-1] for x in resp['files']]
 
134
        files = [x['fileName'].split('/')[-1] for x in resp['files']
 
135
                 if x['fileName'].startswith(self.path)]
135
136
 
136
137
        next_file = resp['nextFileName']
137
138
        while next_file:
141
142
            except urllib2.HTTPError:
142
143
                return files
143
144
 
144
 
            files += [x['fileName'].split('/')[-1] for x in resp['files']]
 
145
            files += [x['fileName'].split('/')[-1] for x in resp['files']
 
146
                      if x['fileName'].startswith(self.path)]
145
147
            next_file = resp['nextFileName']
146
148
 
147
149
        return files