| [ |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[START_DIR]/some dir" |
| ], |
| "infra_step": true, |
| "name": "ensure \"some dir\"" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "a", |
| "[START_DIR]/some dir/a" |
| ], |
| "infra_step": true, |
| "name": "write a" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "aa", |
| "[START_DIR]/some dir/aa" |
| ], |
| "infra_step": true, |
| "name": "write aa" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "b", |
| "[START_DIR]/some dir/b" |
| ], |
| "infra_step": true, |
| "name": "write b" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "bb", |
| "[START_DIR]/some dir/bb" |
| ], |
| "infra_step": true, |
| "name": "write bb" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "c", |
| "[START_DIR]/some dir/c" |
| ], |
| "infra_step": true, |
| "name": "write c" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "cc", |
| "[START_DIR]/some dir/cc" |
| ], |
| "infra_step": true, |
| "name": "write cc" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "filesizes", |
| "[START_DIR]/some dir/a", |
| "[START_DIR]/some dir/aa", |
| "[START_DIR]/some dir/b", |
| "[START_DIR]/some dir/bb", |
| "[START_DIR]/some dir/c", |
| "[START_DIR]/some dir/cc" |
| ], |
| "infra_step": true, |
| "name": "check filesizes", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@filesizes@[START_DIR]/some dir/a: \t111@@@", |
| "@@@STEP_LOG_LINE@filesizes@[START_DIR]/some dir/aa: \t221@@@", |
| "@@@STEP_LOG_LINE@filesizes@[START_DIR]/some dir/b: \t333@@@", |
| "@@@STEP_LOG_LINE@filesizes@[START_DIR]/some dir/bb: \t438@@@", |
| "@@@STEP_LOG_LINE@filesizes@[START_DIR]/some dir/c: \t551@@@", |
| "@@@STEP_LOG_LINE@filesizes@[START_DIR]/some dir/cc: \t666@@@", |
| "@@@STEP_LOG_END@filesizes@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "rmtree", |
| "[START_DIR]/some other dir" |
| ], |
| "infra_step": true, |
| "name": "make sure dest is gone" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copytree", |
| "[START_DIR]/some dir", |
| "[START_DIR]/some other dir" |
| ], |
| "infra_step": true, |
| "name": "copy it" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "listdir", |
| "[START_DIR]/some other dir" |
| ], |
| "infra_step": true, |
| "name": "list new dir", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@listdir@[START_DIR]/some other dir/a@@@", |
| "@@@STEP_LOG_LINE@listdir@[START_DIR]/some other dir/aa@@@", |
| "@@@STEP_LOG_LINE@listdir@[START_DIR]/some other dir/b@@@", |
| "@@@STEP_LOG_LINE@listdir@[START_DIR]/some other dir/bb@@@", |
| "@@@STEP_LOG_LINE@listdir@[START_DIR]/some other dir/c@@@", |
| "@@@STEP_LOG_LINE@listdir@[START_DIR]/some other dir/cc@@@", |
| "@@@STEP_LOG_END@listdir@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "glob", |
| "[START_DIR]/some other dir", |
| "*a" |
| ], |
| "infra_step": true, |
| "name": "glob *a", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@glob@[START_DIR]/some other dir/a@@@", |
| "@@@STEP_LOG_LINE@glob@[START_DIR]/some other dir/aa@@@", |
| "@@@STEP_LOG_END@glob@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "[START_DIR]/some other dir/a", |
| "/path/to/tmp/" |
| ], |
| "infra_step": true, |
| "name": "read [START_DIR]/some other dir/a" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "[START_DIR]/some other dir/aa", |
| "/path/to/tmp/" |
| ], |
| "infra_step": true, |
| "name": "read [START_DIR]/some other dir/aa" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "remove", |
| "[START_DIR]/some other dir/a" |
| ], |
| "infra_step": true, |
| "name": "rm a" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "glob", |
| "[START_DIR]/some other dir", |
| "*a" |
| ], |
| "infra_step": true, |
| "name": "glob *a (2)", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@glob@[START_DIR]/some other dir/aa@@@", |
| "@@@STEP_LOG_END@glob@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "rmglob", |
| "[START_DIR]/some other dir", |
| "b*" |
| ], |
| "infra_step": true, |
| "name": "rm b*" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "listdir", |
| "[START_DIR]/some other dir" |
| ], |
| "infra_step": true, |
| "name": "list new dir (2)", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@listdir@[START_DIR]/some other dir/aa@@@", |
| "@@@STEP_LOG_LINE@listdir@[START_DIR]/some other dir/c@@@", |
| "@@@STEP_LOG_LINE@listdir@[START_DIR]/some other dir/cc@@@", |
| "@@@STEP_LOG_END@listdir@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "rmcontents", |
| "[START_DIR]/some other dir" |
| ], |
| "infra_step": true, |
| "name": "remove \"some other dir/*\"" |
| }, |
| { |
| "jsonResult": null, |
| "name": "$result" |
| } |
| ] |