def prepare_staging_area(sr_path, staging_path, vdi_uuids, seq_num=0):
 for vdi_uuid in vdi_uuids:
  source = os.path.join(sr_path, ('%s.vhd' % vdi_uuid))
  link_name = os.path.join(staging_path, ('%d.vhd' % seq_num))
  _link(source, link_name)
  seq_num += 1

def prepare_staging_area ( sr_path , staging_path , vdi_uuids , seq_num = 0 ) : for vdi_uuid in vdi_uuids : source = os . path . join ( sr_path , ( '%s.vhd' % vdi_uuid ) ) link_name = os . path . join ( staging_path , ( '%d.vhd' % seq_num ) ) _link ( source , link_name ) seq_num += 1
hard-link vhds into staging area .