Flutter Engine
The Flutter Engine
Functions
android_artifacts Namespace Reference

Functions

def cp_files (args)
 
def main ()
 

Function Documentation

◆ cp_files()

def android_artifacts.cp_files (   args)
Copies files from source to destination.

It creates the destination folder if it does not exists yet.

Definition at line 15 of file android_artifacts.py.

15def cp_files(args):
16 """Copies files from source to destination.
17
18 It creates the destination folder if it does not exists yet.
19 """
20 for src, dst in args.input_pairs:
21 os.makedirs(os.path.dirname(dst), exist_ok=True)
22 shutil.copyfile(src, dst)
23
24

◆ main()

def android_artifacts.main ( )

Definition at line 25 of file android_artifacts.py.

25def main():
26 parser = argparse.ArgumentParser()
27 parser.add_argument(
28 '-i',
29 dest='input_pairs',
30 nargs=2,
31 action='append',
32 help='The input file and its destination.'
33 )
34 cp_files(parser.parse_args())
35 return 0
36
37