| 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 |
|
| 6 |
import subprocess |
| 7 |
import sys |
| 8 |
|
| 9 |
args = sys.argv[1:] |
| 10 |
# Add '/*' to the source directory. |
| 11 |
args[-2] = args[-2] + '/*' |
| 12 |
|
| 13 |
# We can't use rsync to communicate with the chromebooks because the |
| 14 |
# chromebooks don't have rsync installed on them. |
| 15 |
cmd = ['scp', '-r'] + args |
| 16 |
print(subprocess.check_output( |
| 17 |
' '.join(cmd), shell=True).decode('utf-8')) |