| [ | |
| { | |
| "cmd": [ | |
| "touch", | |
| "[CLEANUP]/zip-example_tmp_1/a" | |
| ], | |
| "name": "touch a" | |
| }, | |
| { | |
| "cmd": [ | |
| "touch", | |
| "[CLEANUP]/zip-example_tmp_1/b" | |
| ], | |
| "name": "touch b" | |
| }, | |
| { | |
| "cmd": [ | |
| "vpython", | |
| "-u", | |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", | |
| "--json-output", | |
| "/path/to/tmp/json", | |
| "ensure-directory", | |
| "--mode", | |
| "0777", | |
| "[CLEANUP]/zip-example_tmp_1/sub/dir" | |
| ], | |
| "infra_step": true, | |
| "name": "mkdirs" | |
| }, | |
| { | |
| "cmd": [ | |
| "touch", | |
| "[CLEANUP]/zip-example_tmp_1/sub/dir/c" | |
| ], | |
| "name": "touch c" | |
| }, | |
| { | |
| "cmd": [ | |
| "python", | |
| "-u", | |
| "RECIPE_MODULE[flutter::zip]/resources/zip.py" | |
| ], | |
| "name": "zipping", | |
| "stdin": "{\"entries\": [{\"path\": \"[CLEANUP]/zip-example_tmp_1\", \"type\": \"dir\"}], \"output\": \"[CLEANUP]/zip-example_tmp_1/output.zip\", \"root\": \"[CLEANUP]/zip-example_tmp_1\"}" | |
| }, | |
| { | |
| "cmd": [ | |
| "python", | |
| "-u", | |
| "RECIPE_MODULE[flutter::zip]/resources/zip.py" | |
| ], | |
| "name": "zipping more", | |
| "stdin": "{\"entries\": [{\"archive_name\": null, \"path\": \"[CLEANUP]/zip-example_tmp_1/a\", \"type\": \"file\"}, {\"archive_name\": null, \"path\": \"[CLEANUP]/zip-example_tmp_1/b\", \"type\": \"file\"}, {\"path\": \"[CLEANUP]/zip-example_tmp_1/sub\", \"type\": \"dir\"}], \"output\": \"[CLEANUP]/zip-example_tmp_1/more.zip\", \"root\": \"[CLEANUP]/zip-example_tmp_1\"}" | |
| }, | |
| { | |
| "cmd": [ | |
| "echo", | |
| "[CLEANUP]/zip-example_tmp_1/more.zip" | |
| ], | |
| "name": "report" | |
| }, | |
| { | |
| "cmd": [ | |
| "python", | |
| "-u", | |
| "RECIPE_MODULE[flutter::zip]/resources/unzip.py" | |
| ], | |
| "name": "unzipping", | |
| "stdin": "{\"output\": \"[CLEANUP]/zip-example_tmp_1/output\", \"quiet\": true, \"zip_file\": \"[CLEANUP]/zip-example_tmp_1/output.zip\"}" | |
| }, | |
| { | |
| "cmd": [ | |
| "find" | |
| ], | |
| "cwd": "[CLEANUP]/zip-example_tmp_1/output", | |
| "name": "listing" | |
| }, | |
| { | |
| "cmd": [ | |
| "vpython", | |
| "-u", | |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", | |
| "--json-output", | |
| "/path/to/tmp/json", | |
| "rmtree", | |
| "[CLEANUP]/zip-example_tmp_1" | |
| ], | |
| "infra_step": true, | |
| "name": "cleanup" | |
| }, | |
| { | |
| "name": "$result" | |
| } | |
| ] |