Flutter Engine
The Flutter Engine
|
Public Member Functions | |
def | __call__ (self, step_name, *args) |
def | cp (self, name, src, dst, extra_gsutil_args=None, extra_args=None, multithread=False) |
def gsutil.api.GSUtilApi.__call__ | ( | self, | |
step_name, | |||
* | args | ||
) |
Run gsutil with the given args. This assumes there exists an executable called gsutil on the PATH. This probably only works for Linux/Mac, but those are the only hosts that we try to upload to GCS from anyway.
Definition at line 11 of file api.py.
def gsutil.api.GSUtilApi.cp | ( | self, | |
name, | |||
src, | |||
dst, | |||
extra_gsutil_args = None , |
|||
extra_args = None , |
|||
multithread = False |
|||
) |
Attempt to upload or download files to/from Google Cloud Storage (GCS). Args: name: string. Will be used to fill out the step name. src: string. Absolute path for a local file or gcs file (e.g. gs://...) dst: string. Same as src. extra_gsutil_args: optional list of args to be passed to gsutil before the cp command. extra_args: optional list of args to be passed to gsutil cp. e.g. [-Z] asks all files be compressed with gzip after upload and before download. multi_thread: if the -m argument should be used to copy multiple items at once (e.g. gsutil -m cp foo* gs://bar/dir) If the operation fails, it will be retried multiple times.
Definition at line 20 of file api.py.