Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
{"cases": [
{"name": "files_text_roundtrip", "tags": ["files"], "steps": [
["files.write", ["/tmp/c/ft/a.txt", "héllo wörld 🌍\nline2"]],
["files.read", ["/tmp/c/ft/a.txt"]],
["files.read", ["/tmp/c/ft/a.txt"], {"format": "bytes"}],
["files.read", ["/tmp/c/ft/a.txt"], {"format": "stream"}, {"as": "stream", "quiet": true}],
["files.write", ["/tmp/c/ft/a.txt", "overwritten"]],
["files.read", ["/tmp/c/ft/a.txt"]],
["files.write", ["/tmp/c/ft/empty.txt", ""]],
["files.read", ["/tmp/c/ft/empty.txt"]],
["files.get_info", ["/tmp/c/ft/empty.txt"], {}, {"pick": ["name", "path", "type", "size", "mode", "permissions", "owner", "group", "symlink_target"]}]
]},
{"name": "files_write_info", "tags": ["files"], "steps": [
["files.write", ["/tmp/c/fw/x.txt", "x"]],
["files.write", ["fw-rel.txt", "x"]],
["files.write", ["~/fw-tilde.txt", "x"]],
["files.write", ["/tmp/c/fw/deep/er/y.txt", "y"]],
["files.write", ["/tmp/c/fw/dir with space/f #1 %20 &?.txt", "z"]],
["files.write", ["/tmp/c/fw/ünï cødé 日本語.txt", "u"]],
["files.read", ["/tmp/c/fw/ünï cødé 日本語.txt"]],
["files.read", ["/tmp/c/fw/dir with space/f #1 %20 &?.txt"]],
["files.list", ["/tmp/c/fw"], {}, {"pick": ["name", "type"], "sort": true}],
["commands.run", ["rm -f ~/fw-rel.txt ~/fw-tilde.txt"]]
]},
{"name": "files_binary_roundtrip", "tags": ["files"], "steps": [
["files.write", ["/tmp/c/fb/all.bin", {"$bytes": {"n": 65536, "seed": 7}}]],
["files.read", ["/tmp/c/fb/all.bin"], {"format": "bytes"}],
["files.write", ["/tmp/c/fb/zero.bin", {"$bytes": {"n": 100000, "pattern": "zero"}}]],
["files.read", ["/tmp/c/fb/zero.bin"], {"format": "bytes"}],
["commands.run", ["sha256sum /tmp/c/fb/all.bin | cut -c1-16; stat -c %s /tmp/c/fb/zero.bin"]],
["files.read", ["/tmp/c/fb/all.bin"], {}, {"as": "asText"}]
]},
{"name": "files_stream_io", "tags": ["files"], "steps": [
["files.write", ["/tmp/c/fs/stream.bin", {"$stream": {"n": 3000000, "seed": 5}}]],
["files.read", ["/tmp/c/fs/stream.bin"], {"format": "bytes"}],
["files.read", ["/tmp/c/fs/stream.bin"], {"format": "stream"}, {"consume": true}],
["commands.run", ["stat -c %s /tmp/c/fs/stream.bin"]]
]},
{"name": "files_large", "tags": ["files", "large"], "steps": [
["files.write", ["/tmp/c/fl/big.bin", {"$stream": {"n": 64000000, "seed": 11}}], {"request_timeout": 300}],
["commands.run", ["stat -c %s /tmp/c/fl/big.bin; sha256sum /tmp/c/fl/big.bin | cut -c1-16"], {"timeout": 120}],
["files.read", ["/tmp/c/fl/big.bin"], {"format": "stream", "request_timeout": 300}, {"consume": true}],
["commands.run", ["rm -f /tmp/c/fl/big.bin"]]
]},
{"name": "files_get_info", "tags": ["files"], "steps": [
["commands.run", ["mkdir -p /tmp/c/fi/d && echo data > /tmp/c/fi/f.txt && ln -s f.txt /tmp/c/fi/link && ln -s /nonexistent /tmp/c/fi/broken && ln -s d /tmp/c/fi/dlink && chmod 640 /tmp/c/fi/f.txt && chmod 750 /tmp/c/fi/d && touch -d '2020-01-02 03:04:05 UTC' /tmp/c/fi/f.txt"]],
["files.get_info", ["/tmp/c/fi/f.txt"], {}, {"pick": ["name", "path", "type", "size", "mode", "permissions", "owner", "group", "symlink_target"]}],
["files.get_info", ["/tmp/c/fi/d"], {}, {"pick": ["name", "path", "type", "mode", "permissions", "owner", "group", "symlink_target"]}],
["files.get_info", ["/tmp/c/fi/link"], {}, {"pick": ["name", "path", "type", "size", "mode", "permissions", "owner", "group", "symlink_target"]}],
["files.get_info", ["/tmp/c/fi/broken"], {}, {"pick": ["name", "path", "type", "symlink_target"]}],
["files.get_info", ["/tmp/c/fi/dlink"], {}, {"pick": ["name", "path", "type", "symlink_target"]}],
["files.get_info", ["/tmp/c/fi/nope"]],
["files.get_info", ["/tmp/c/fi/f.txt"], {"user": "root"}, {"pick": ["owner", "group"]}],
["files.get_info", ["/etc/shadow"], {}, {"pick": ["name", "type", "permissions", "owner", "group"]}],
["files.get_info", ["/root"], {}, {"pick": ["name", "type", "permissions", "owner"]}],
["files.get_info", ["/root/.bashrc"], {}, {"pick": ["name", "type", "permissions", "owner"]}],
["files.get_info", ["/dev/null"], {}, {"pick": ["name", "type", "permissions"]}],
["files.get_info", ["/proc/self"], {}, {"pick": ["type"]}],
["files.get_info", ["/"], {}, {"pick": ["name", "path", "type"]}],
["files.get_info", [""], {}, {"pick": ["name", "path", "type", "owner"]}],
["files.get_info", ["/tmp/c/fi/f.txt"], {}, {"as": "fi", "quiet": true}],
["@modified_time", [], {}, {"on": "fi", "quiet": true}]
]},
{"name": "files_list", "tags": ["files"], "steps": [
["commands.run", ["rm -rf /tmp/c/fl2; mkdir -p /tmp/c/fl2/a/b/c /tmp/c/fl2/empty && echo 1 > /tmp/c/fl2/f1 && echo 2 > /tmp/c/fl2/a/f2 && echo 3 > /tmp/c/fl2/a/b/f3 && echo 4 > /tmp/c/fl2/a/b/c/f4 && echo h > /tmp/c/fl2/.hidden && ln -s f1 /tmp/c/fl2/lnk"]],
["files.list", ["/tmp/c/fl2"], {}, {"pick": ["name", "path", "type", "symlink_target"], "sort": true}],
["files.list", ["/tmp/c/fl2"], {"depth": 2}, {"pick": ["path", "type"], "sort": true}],
["files.list", ["/tmp/c/fl2"], {"depth": 3}, {"pick": ["path", "type"], "sort": true}],
["files.list", ["/tmp/c/fl2"], {"depth": 10}, {"pick": ["path"], "sort": true}],
["files.list", ["/tmp/c/fl2"], {"depth": 0}, {"pick": ["path"], "sort": true}],
["files.list", ["/tmp/c/fl2"], {"depth": -1}, {"pick": ["path"], "sort": true}],
["files.list", ["/tmp/c/fl2/empty"]],
["files.list", ["/tmp/c/fl2/f1"]],
["files.list", ["/tmp/c/fl2/nope"]],
["files.list", ["/tmp/c/fl2/lnk"], {}, {"pick": ["path"]}],
["commands.run", ["mkdir -p /root/c-list && touch /root/c-list/a /root/c-list/.b"], {"user": "root"}],
["files.list", ["/root/c-list"], {}, {"pick": ["name", "owner"]}],
["files.list", ["/root/c-list"], {"user": "root"}, {"pick": ["name", "owner"]}],
["commands.run", ["mkdir -p /root/c-list && touch /root/c-list/a /root/c-list/.b"], {"user": "root"}],
["files.list", ["/root/c-list"], {}, {"pick": ["name", "owner"]}],
["files.list", ["/root/c-list"], {"user": "root"}, {"pick": ["name", "owner"]}],
["files.list", ["/tmp/c/fl2/"], {}, {"pick": ["path"], "sort": true}]
]},
{"name": "files_exists", "tags": ["files"], "steps": [
["commands.run", ["mkdir -p /tmp/c/fe/d && touch /tmp/c/fe/f && ln -s /nonexistent /tmp/c/fe/broken && ln -s f /tmp/c/fe/ok"]],
["files.exists", ["/tmp/c/fe/f"]],
["files.exists", ["/tmp/c/fe/d"]],
["files.exists", ["/tmp/c/fe/nope"]],
["files.exists", ["/tmp/c/fe/broken"]],
["files.exists", ["/tmp/c/fe/ok"]],
["files.exists", ["/root/.bashrc"]],
["files.exists", ["/root/nope"]],
["files.exists", ["/root/.bashrc"], {"user": "root"}],
["files.exists", [""]]
]},
{"name": "files_make_dir", "tags": ["files"], "steps": [
["files.make_dir", ["/tmp/c/fm/new"]],
["files.make_dir", ["/tmp/c/fm/new"]],
["files.make_dir", ["/tmp/c/fm/a/b/c/d"]],
["commands.run", ["touch /tmp/c/fm/file"]],
["files.make_dir", ["/tmp/c/fm/file"]],
["files.make_dir", ["/tmp/c/fm/file/sub"]],
["files.make_dir", ["/root/denied"]],
["files.make_dir", ["relative-dir-fm"]],
["commands.run", ["stat -c '%a %U' /tmp/c/fm/new /tmp/c/fm/a/b ~/relative-dir-fm; rmdir ~/relative-dir-fm"]]
]},
{"name": "files_remove", "tags": ["files"], "steps": [
["commands.run", ["mkdir -p /tmp/c/fr/d/e && touch /tmp/c/fr/f /tmp/c/fr/d/e/g && ln -s f /tmp/c/fr/lnk && ln -s d /tmp/c/fr/dlnk"]],
["files.remove", ["/tmp/c/fr/f"]],
["files.exists", ["/tmp/c/fr/f"]],
["files.remove", ["/tmp/c/fr/f"]],
["files.remove", ["/tmp/c/fr/lnk"]],
["files.remove", ["/tmp/c/fr/dlnk"]],
["files.exists", ["/tmp/c/fr/d"]],
["files.remove", ["/tmp/c/fr/d"]],
["files.exists", ["/tmp/c/fr/d"]],
["files.remove", ["/root/.bashrc"]],
["files.remove", ["/tmp/c/fr/never"]]
]},
{"name": "files_rename", "tags": ["files"], "steps": [
["commands.run", ["rm -rf /tmp/c/frn; mkdir -p /tmp/c/frn/dir/sub /tmp/c/frn/other && echo a > /tmp/c/frn/a && echo b > /tmp/c/frn/b && echo c > /tmp/c/frn/dir/sub/c"]],
["files.rename", ["/tmp/c/frn/a", "/tmp/c/frn/a2"], {}, {"pick": ["name", "path", "type", "size"]}],
["files.exists", ["/tmp/c/frn/a"]],
["files.rename", ["/tmp/c/frn/a2", "/tmp/c/frn/b"], {}, {"pick": ["name", "path"]}],
["files.read", ["/tmp/c/frn/b"]],
["files.rename", ["/tmp/c/frn/dir", "/tmp/c/frn/dir2"], {}, {"pick": ["name", "path", "type"]}],
["files.list", ["/tmp/c/frn"], {"depth": 3}, {"pick": ["path"], "sort": true}],
["files.rename", ["/tmp/c/frn/nope", "/tmp/c/frn/x"]],
["files.rename", ["/tmp/c/frn/b", "/tmp/c/frn/no/such/parent/b"], {}, {"pick": ["path"]}],
["files.rename", ["/tmp/c/frn/b", "/tmp/c/frn/other"], {}, {"pick": ["path", "type"]}],
["commands.run", ["stat -c '%U' /tmp/c/frn/no /tmp/c/frn/no/such 2>&1"]],
["files.rename", ["/tmp/c/frn/dir2", "/tmp/c/frn/other"]],
["files.rename", ["/tmp/c/frn/b", "/tmp/c/frn/b"], {}, {"pick": ["path"]}],
["files.rename", ["/tmp/c/frn/b", "/root/b"]]
]},
{"name": "files_symlinks", "tags": ["files"], "steps": [
["commands.run", ["rm -rf /tmp/c/fsl; mkdir -p /tmp/c/fsl/real && echo target-data > /tmp/c/fsl/real/t.txt && ln -s real /tmp/c/fsl/dl && ln -s real/t.txt /tmp/c/fsl/fl && ln -s /nonexistent /tmp/c/fsl/bad && ln -s fl /tmp/c/fsl/chain"]],
["files.read", ["/tmp/c/fsl/fl"]],
["files.read", ["/tmp/c/fsl/chain"]],
["files.read", ["/tmp/c/fsl/dl/t.txt"]],
["files.read", ["/tmp/c/fsl/bad"]],
["files.read", ["/tmp/c/fsl/dl"]],
["files.list", ["/tmp/c/fsl/dl"], {}, {"pick": ["name", "path"]}],
["files.list", ["/tmp/c/fsl"], {}, {"pick": ["name", "type", "symlink_target"], "sort": true}],
["files.write", ["/tmp/c/fsl/fl", "written-through-link"]],
["files.read", ["/tmp/c/fsl/real/t.txt"]],
["commands.run", ["[ -L /tmp/c/fsl/fl ] && echo still-link"]],
["files.write", ["/tmp/c/fsl/bad", "x"]],
["files.remove", ["/tmp/c/fsl/dl"]],
["files.exists", ["/tmp/c/fsl/real/t.txt"]]
]},
{"name": "files_permissions", "tags": ["files"], "steps": [
["files.write", ["/tmp/c/fp/default.txt", "x"]],
["files.write", ["/tmp/c/fp/root.txt", "x"], {"user": "root"}],
["commands.run", ["stat -c '%n %a %U:%G' /tmp/c/fp/default.txt /tmp/c/fp/root.txt /tmp/c/fp"]],
["files.read", ["/tmp/c/fp/root.txt"]],
["commands.run", ["chmod 600 /tmp/c/fp/root.txt"], {"user": "root"}],
["files.read", ["/tmp/c/fp/root.txt"]],
["files.read", ["/tmp/c/fp/root.txt"], {"user": "root"}],
["files.write", ["/tmp/c/fp/root.txt", "overwrite"]],
["files.write", ["/root/denied.txt", "x"]],
["files.write", ["/etc/denied.conf", "x"]],
["files.write", ["/tmp/c/fp/ro-dir/x", "x"], {"user": "root"}],
["commands.run", ["chmod 555 /tmp/c/fp/ro-dir"], {"user": "root"}],
["files.write", ["/tmp/c/fp/ro-dir/y", "y"]],
["files.list", ["/root"], {"user": "nobody-such-user"}],
["files.read", ["/tmp/c/fp/default.txt"], {"user": "nobody-such-user"}],
["files.write", ["/tmp/c/fp/other-user.txt", "x"], {"user": "nobody"}],
["commands.run", ["stat -c '%U' /tmp/c/fp/other-user.txt"]]
]},
{"name": "files_write_files", "tags": ["files"], "steps": [
["files.write_files", [[{"path": "/tmp/c/fwf/1.txt", "data": "one"}, {"path": "/tmp/c/fwf/2.bin", "data": {"$bytes": {"n": 300, "seed": 2}}}, {"path": "/tmp/c/fwf/sub/3.txt", "data": "three"}]], {}, {"pick": ["name", "path", "type"]}],
["files.read", ["/tmp/c/fwf/2.bin"], {"format": "bytes"}],
["files.write_files", [[]]],
["files.write_files", [[{"path": "/tmp/c/fwf/dup.txt", "data": "first"}, {"path": "/tmp/c/fwf/dup.txt", "data": "second"}]], {}, {"pick": ["path"]}],
["files.read", ["/tmp/c/fwf/dup.txt"]],
["files.write_files", [[{"path": "/tmp/c/fwf/ok.txt", "data": "ok"}, {"path": "/root/bad.txt", "data": "bad"}]]],
["files.exists", ["/tmp/c/fwf/ok.txt"]],
["files.write_files", [{"$repeat": {"n": 60, "item": {"path": "/tmp/c/fwf/many/{i}.txt", "data": "x"}}}], {}, {"quiet": true}],
["commands.run", ["ls /tmp/c/fwf/many | wc -l"]]
]},
{"name": "files_write_options", "tags": ["files"], "steps": [
["files.write", ["/tmp/c/fwo/gz.txt", "gzip body"], {"gzip": true}],
["files.read", ["/tmp/c/fwo/gz.txt"], {"gzip": true}],
["files.write", ["/tmp/c/fwo/oct.txt", "octet body"], {"use_octet_stream": true}],
["files.write", ["/tmp/c/fwo/mp.txt", "multipart body"], {"use_octet_stream": false}],
["files.read", ["/tmp/c/fwo/oct.txt"]],
["files.read", ["/tmp/c/fwo/mp.txt"]],
["files.write", ["/tmp/c/fwo/meta.txt", "m"], {"metadata": {"k": "v", "other": "x"}}, {"pick": ["name", "path", "metadata"]}],
["files.get_info", ["/tmp/c/fwo/meta.txt"], {}, {"pick": ["metadata"]}],
["files.list", ["/tmp/c/fwo"], {}, {"pick": ["name", "metadata"], "sort": true}]
]},
{"name": "files_read_errors", "tags": ["files"], "steps": [
["files.read", ["/tmp/c/nope/missing.txt"]],
["files.read", ["/tmp/c"]],
["files.read", [""]],
["files.read", ["/tmp/c/frd/is-dir"], {"format": "bytes"}],
["files.read", ["/dev/null"]],
["commands.run", ["mkfifo /tmp/c/fifo-test 2>/dev/null; echo ok"]],
["files.get_info", ["/tmp/c/fifo-test"], {}, {"pick": ["type", "name"]}]
]},
{"name": "files_relative_paths", "tags": ["files"], "steps": [
["files.write", ["rel/a.txt", "a"]],
["files.write", ["./rel/b.txt", "b"]],
["files.write", ["~/rel/c.txt", "c"]],
["files.write", ["rel/../rel/d.txt", "d"]],
["files.list", ["rel"], {}, {"pick": ["name", "path"], "sort": true}],
["files.list", ["~/rel"], {}, {"pick": ["path"], "sort": true}],
["files.read", ["/home/user/rel/a.txt"]],
["files.exists", ["~/rel/c.txt"]],
["files.write", ["rel/a.txt", "root-write"], {"user": "root"}],
["files.read", ["/root/rel/a.txt"], {"user": "root"}],
["commands.run", ["rm -rf ~/rel /root/rel"], {"user": "root"}]
]},
{"name": "files_watch_basic", "tags": ["files", "watch"], "steps": [
["files.make_dir", ["/tmp/c/fwa"]],
["files.watch_dir", ["/tmp/c/fwa", {"$cb": "events_set", "as": "event"}], {}, {"as": "w"}],
["sleep", [1]],
["files.write", ["/tmp/c/fwa/new.txt", "n"]],
["sleep", [1]],
["files.write", ["/tmp/c/fwa/new.txt", "changed"]],
["sleep", [1]],
["files.rename", ["/tmp/c/fwa/new.txt", "/tmp/c/fwa/renamed.txt"], {}, {"quiet": true}],
["sleep", [1]],
["commands.run", ["chmod 600 /tmp/c/fwa/renamed.txt"]],
["sleep", [1]],
["files.make_dir", ["/tmp/c/fwa/subdir"]],
["files.write", ["/tmp/c/fwa/subdir/inner.txt", "i"]],
["sleep", [1]],
["files.remove", ["/tmp/c/fwa/renamed.txt"]],
["sleep", [2]],
["@stop", [], {}, {"on": "w"}],
["files.write", ["/tmp/c/fwa/after-stop.txt", "x"]],
["sleep", [1]]
]},
{"name": "files_watch_recursive", "tags": ["files", "watch"], "steps": [
["commands.run", ["rm -rf /tmp/c/fwr; mkdir -p /tmp/c/fwr/a/b"]],
["files.watch_dir", ["/tmp/c/fwr", {"$cb": "events_set", "as": "event"}], {"recursive": true}, {"as": "w"}],
["sleep", [1]],
["files.write", ["/tmp/c/fwr/top.txt", "t"]],
["files.write", ["/tmp/c/fwr/a/mid.txt", "m"]],
["files.write", ["/tmp/c/fwr/a/b/deep.txt", "d"]],
["files.make_dir", ["/tmp/c/fwr/a/newdir"]],
["sleep", [1]],
["files.write", ["/tmp/c/fwr/a/newdir/late.txt", "l"]],
["sleep", [2]],
["@stop", [], {}, {"on": "w"}]
]},
{"name": "files_watch_nonrecursive_ignores_subdirs", "tags": ["files", "watch"], "steps": [
["commands.run", ["rm -rf /tmp/c/fwn; mkdir -p /tmp/c/fwn/a"]],
["files.watch_dir", ["/tmp/c/fwn", {"$cb": "events_set", "as": "event"}], {}, {"as": "w"}],
["sleep", [1]],
["files.write", ["/tmp/c/fwn/a/inner.txt", "x"]],
["files.write", ["/tmp/c/fwn/top.txt", "x"]],
["sleep", [2]],
["@stop", [], {}, {"on": "w"}]
]},
{"name": "files_watch_errors", "tags": ["files", "watch"], "steps": [
["files.watch_dir", ["/tmp/c/fwe-missing", {"$cb": "_ev"}]],
["files.write", ["/tmp/c/fwe-file.txt", "x"]],
["files.watch_dir", ["/tmp/c/fwe-file.txt", {"$cb": "_ev"}]]
]},
{"name": "files_watch_many_events", "tags": ["files", "watch"], "steps": [
["commands.run", ["rm -rf /tmp/c/fwm; mkdir -p /tmp/c/fwm"]],
["files.watch_dir", ["/tmp/c/fwm", {"$cb": "events_count", "as": "event"}], {}, {"as": "w"}],
["sleep", [1]],
["commands.run", ["for i in $(seq 1 30); do echo $i > /tmp/c/fwm/f$i; done"]],
["sleep", [3]],
["@stop", [], {}, {"on": "w"}]
]},
{"name": "files_signed_urls", "tags": ["files", "urls"], "steps": [
["files.write", ["/tmp/c/fu/dl.txt", "download me"], {"user": "root"}],
["download_url", ["/tmp/c/fu/dl.txt"], {"user": "root"}, {"as": "dl", "quiet": true}],
["http", ["$dl"]],
["download_url", ["/tmp/c/fu/dl.txt"], {"user": "root", "use_signature_expiration": 60}, {"as": "dl2", "quiet": true}],
["http", ["$dl2"]],
["download_url", ["/tmp/c/fu/nope.txt"], {"user": "root"}, {"as": "dl3", "quiet": true}],
["http", ["$dl3"]],
["upload_url", ["/tmp/c/fu/up.txt"], {"user": "root"}, {"as": "up", "quiet": true}],
["http", ["$up"], {"method": "POST", "multipart": {"files": [{"filename": "up.txt", "content": "uploaded"}]}}],
["files.read", ["/tmp/c/fu/up.txt"], {"user": "root"}],
["http", ["$up"], {"method": "POST", "data": "raw octet", "headers": {"Content-Type": "application/octet-stream"}}],
["files.read", ["/tmp/c/fu/up.txt"], {"user": "root"}],
["http", ["$dl"], {"tamper": true}],
["upload_url", ["/tmp/c/fu/default-user.txt"], {}, {"as": "up2", "quiet": true}],
["http", ["$up2"], {"method": "POST", "multipart": {"files": [{"filename": "x", "content": "by-default-user"}]}}],
["commands.run", ["stat -c %U /tmp/c/fu/default-user.txt"]]
]},
{"name": "files_entry_shapes", "tags": ["files"], "steps": [
["commands.run", ["rm -rf /tmp/c/fes; mkdir -p /tmp/c/fes/dir && cd /tmp/c/fes && echo data > f.txt && ln -s f.txt link && ln -s /nonexistent broken && ln -s dir dlink && ln f.txt hard && mkfifo fifo && chmod 4755 f.txt && chmod 1777 dir && touch -d '2021-03-04 05:06:07 UTC' f.txt dir"]],
["files.get_info", ["/tmp/c/fes/f.txt"], {}, {"pick": ["name", "path", "type", "size", "mode", "permissions", "owner", "group", "symlink_target", "modified_time"]}],
["files.get_info", ["/tmp/c/fes/link"], {}, {"pick": ["name", "path", "type", "size", "mode", "permissions", "owner", "group", "symlink_target"]}],
["files.get_info", ["/tmp/c/fes/broken"]],
["files.get_info", ["/tmp/c/fes/dlink"], {}, {"pick": ["name", "path", "type", "size", "mode", "permissions", "owner", "group", "symlink_target"]}],
["files.get_info", ["/tmp/c/fes/dir"], {}, {"pick": ["name", "type", "mode", "permissions"]}],
["files.get_info", ["/tmp/c/fes/fifo"], {}, {"pick": ["name", "type", "permissions"]}],
["files.get_info", ["/tmp/c/fes/hard"], {}, {"pick": ["name", "type", "mode", "permissions", "size"]}],
["files.get_info", ["/tmp"], {}, {"pick": ["name", "type", "mode", "permissions"]}],
["files.get_info", ["/dev/null"], {}, {"pick": ["name", "type", "mode", "permissions"]}],
["files.list", ["/tmp/c/fes"], {}, {"pick": ["name", "type", "mode", "permissions", "symlink_target", "owner"]}],
["files.list", ["/tmp/c/fes/dlink"], {}, {"pick": ["name", "path", "type"]}],
["files.get_info", ["/tmp/c/fes/f.txt"], {}, {"as": "fi", "quiet": true}],
["@modified_time", [], {}, {"on": "fi", "quiet": true}]
]},
{"name": "files_write_replace_dir", "tags": ["files"], "steps": [
["commands.run", ["rm -rf /tmp/c/fwd; mkdir -p /tmp/c/fwd/adir && echo x > /tmp/c/fwd/afile"]],
["files.write", ["/tmp/c/fwd/adir", "data"]],
["files.write", ["/tmp/c/fwd/afile/child", "data"]],
["files.write", ["/tmp/c/fwd/afile", "replaced"]],
["files.read", ["/tmp/c/fwd/afile"]],
["files.write", ["/proc/version", "x"]],
["files.write", ["/tmp/c/fwd/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "long name"]],
["files.write", ["", "empty path"]]
]}
]}