| [ |
| { |
| "cmd": [ |
| "touch", |
| "[CLEANUP]/zip-example_tmp_1/a" |
| ], |
| "name": "touch a" |
| }, |
| { |
| "cmd": [ |
| "touch", |
| "[CLEANUP]/zip-example_tmp_1/b" |
| ], |
| "name": "touch b" |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-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", |
| "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", |
| "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", |
| "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": [ |
| "vpython3", |
| "-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" |
| } |
| ] |