unplugged-system/test/dittosuite/example/iterate_read_files.ditto

41 lines
796 B
Plaintext
Raw Normal View History

main: {
instruction_set: {
instructions: [
{
read_directory {
directory_name: "test_directory",
output: "file_list"
}
},
{
instruction_set {
instructions: [
{
open_file: {
input: "file_name",
output_fd: "file_fd"
}
},
{
read_file: {
input_fd: "file_fd"
}
},
{
close_file: {
input_fd: "file_fd"
}
}
],
iterate_options: {
list_name: "file_list",
item_name: "file_name",
access_order: RANDOM
}
}
}
]
}
},
global {}