blob: d06edb3822a01a52abc479362e71ec4c5a0620ef [file] [log] [blame]
[
{
"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": [
"python3",
"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": [
"python3",
"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": [
"python3",
"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": [
"python3",
"RECIPE_MODULE[flutter::zip]\\resources\\namelist.py"
],
"name": "namelist",
"stdin": "{\"zip_file\": \"[CLEANUP]\\\\zip-example_tmp_1\\\\output.zip\"}",
"~followup_annotations": [
"@@@STEP_LOG_LINE@json.output@[@@@",
"@@@STEP_LOG_LINE@json.output@ \"/a/b/c.txt\"@@@",
"@@@STEP_LOG_LINE@json.output@]@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"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"
}
]