From 0955401ca27fe5c40dd065f46b93eab876a1a091 Mon Sep 17 00:00:00 2001 From: godofredoc Date: Mon, 12 Sep 2022 08:14:15 -0700 Subject: [PATCH] Creates dst folder if it does not exist. (flutter/engine#36066) --- engine/src/flutter/sky/tools/create_macos_gen_snapshots.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/src/flutter/sky/tools/create_macos_gen_snapshots.py b/engine/src/flutter/sky/tools/create_macos_gen_snapshots.py index 4daa54f0b2..52f29a7397 100755 --- a/engine/src/flutter/sky/tools/create_macos_gen_snapshots.py +++ b/engine/src/flutter/sky/tools/create_macos_gen_snapshots.py @@ -33,6 +33,10 @@ def main(): if os.path.isabs(args.dst) else os.path.join(buildroot_dir, args.dst) ) + # if dst folder does not exist create it. + if not os.path.exists(dst): + os.makedirs(dst) + if args.x64_out_dir: x64_out_dir = ( args.x64_out_dir if os.path.isabs(args.x64_out_dir) else