~nskaggs/juju-release-tools/generate-release-notes

« back to all changes in this revision

Viewing changes to manta_sync.py

  • Committer: Aaron Bentley
  • Date: 2015-10-19 18:31:11 UTC
  • mto: This revision was merged to the branch mainline in revision 227.
  • Revision ID: aaron.bentley@canonical.com-20151019183111-zymkrsmi35erxawh
Updates from review, avoid top-level mkdir

Show diffs side-by-side

added added

removed removed

Lines of Context:
261
261
    """
262
262
    # Don't use os.path.split, because these are Manta paths, not local paths.
263
263
    segments = path.split('/')
264
 
    full_path = segments[0]
265
 
    client.mkdir(full_path)
266
 
    for segment in segments[1:]:
 
264
    full_path = '/'.join(segments[0:2])
 
265
    for segment in segments[2:]:
267
266
        full_path = '/'.join([full_path, segment])
268
267
        client.mkdir(full_path)
269
268