Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
android_artifacts Namespace Reference

Functions

 cp_files (args)
 
 main ()
 

Detailed Description

Copies and renames android artifacts.

Function Documentation

◆ cp_files()

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()

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
Definition main.py:1