CopyFiles is still used. (flutter/engine#10012)

This commit is contained in:
Kaushik Iska
2019-07-22 14:56:13 -07:00
committed by GitHub
parent 12d876bd6c
commit 06c01b48d3

View File

@@ -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.