diff --git a/tools/fuchsia/build_fuchsia_artifacts.py b/tools/fuchsia/build_fuchsia_artifacts.py index 59d33935049bc345436425232c55a2c42d2d8fb9..d1880f4e16a4823bbb35075d95ef69eb5c422cce 100755 --- a/tools/fuchsia/build_fuchsia_artifacts.py +++ b/tools/fuchsia/build_fuchsia_artifacts.py @@ -95,6 +95,16 @@ def BuildBucket(): CopyToBucket('fuchsia_release/', 'flutter/release/') +def CopyFiles(source, destination): + try: + shutil.copytree(source, destination) + except OSError as error: + if error.errno == errno.ENOTDIR: + shutil.copy(source, destination) + else: + raise + + def ProcessCIPDPakcage(upload, engine_version): # Copy the CIPD YAML template from the source directory to be next to the bucket # we are about to package.