chrome/test/data/android/upload_download_utils.py
def upload(directory, filter, scenario, gcs_bucket, dry_run=False):
  """Uploads the files to cloud storage.

  Args:
    directory: A local disk directory.
    filter: A method to filter target files inside the directory.
    scenarios: A scenario that calls this upload.
    gcs_bucket: A GCS bucket name to be used in upload.
    dry_run: A flag to indicate whether it is just a dry_run or a real upload.
  """
  files_to_upload = _get_files_to_upload(directory, filter)

  if len(files_to_upload):
    if dry_run:
      logging.info('Will upload the following %s: %s',
                   scenario, ', '.join(files_to_upload))
      logging.info('Destination gcs bucket: %s', gcs_bucket)
      return
    subprocess.check_call([
        'upload_to_google_storage.py',
        '--bucket', gcs_bucket,
        '-t', str(_get_thread_count()),
    ] + files_to_upload)
Uploads the files to cloud storage.

  Args:
    directory: A local disk directory.
    filter: A method to filter target files inside the directory.
    scenarios: A scenario that calls this upload.
    gcs_bucket: A GCS bucket name to be used in upload.
    dry_run: A flag to indicate whether it is just a dry_run or a real upload.
  
Uploads the files to cloud storage.
Uploads the files to cloud storage .
def upload(directory, filter, scenario, gcs_bucket, dry_run=False):
  files_to_upload = _get_files_to_upload(directory, filter)
  if len(files_to_upload):
    if dry_run:
      logging.info('Will upload the following %s: %s',
                   scenario, ', '.join(files_to_upload))
      logging.info('Destination gcs bucket: %s', gcs_bucket)
      return
    subprocess.check_call([
        'upload_to_google_storage.py',
        '--bucket', gcs_bucket,
        '-t', str(_get_thread_count()),
    ] + files_to_upload)
def upload ( directory , filter , scenario , gcs_bucket , dry_run = False ) : files_to_upload = _get_files_to_upload ( directory , filter ) if len ( files_to_upload ) : if dry_run : logging . info ( 'Will upload the following %s: %s' , scenario , ', ' . join ( files_to_upload ) ) logging . info ( 'Destination gcs bucket: %s' , gcs_bucket ) return subprocess . check_call ( [ 'upload_to_google_storage.py' , '--bucket' , gcs_bucket , '-t' , str ( _get_thread_count ( ) ) , ] + files_to_upload )
Uploads the files to cloud storage.
Uploads the files to cloud storage .
"""Uploads the files to cloud storage.

  Args:
    directory: A local disk directory.
    filter: A method to filter target files inside the directory.
    scenarios: A scenario that calls this upload.
    gcs_bucket: A GCS bucket name to be used in upload.
    dry_run: A flag to indicate whether it is just a dry_run or a real upload.
  """
directory
A local disk directory.
A local disk directory .
filter
A method to filter target files inside the directory.
A method to filter target files inside the directory .
scenario
gcs_bucket
A GCS bucket name to be used in upload.
A GCS bucket name to be used in upload .
dry_run
A flag to indicate whether it is just a dry_run or a real upload.
A flag to indicate whether it is just a dry_run or a real upload .
scenarios
A scenario that calls this upload.
A scenario that calls this upload .