xref: /aosp_15_r20/external/skia/infra/bots/recipe_modules/flavor/resources/scp.py (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1# Copyright 2024 Google LLC
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6import subprocess
7import sys
8
9src = sys.argv[1] + '/*'
10dest   = sys.argv[2]
11
12# We can't use rsync to communicate with the chromebooks because the
13# chromebooks don't have rsync installed on them.
14print(subprocess.check_output(
15      'scp -r %s %s' % (src, dest), shell=True).decode('utf-8'))