010 dir capability

✓ Passing This code compiles and runs correctly.

Code

input.k

Supporting Files

sandbox/hello.txt
sandbox/input.txt

Actual

entry hello.txt
entry input.txt
-- listed
text: hello world

wrote
line one
line two
-- collected
pulse one
pulse two
-- pulsed 2
fenced-rel path escapes the dir
fenced-abs path escapes the dir
missing File not found
closed

Expected output

entry hello.txt
entry input.txt
-- listed
text: hello world

wrote
line one
line two
-- collected
pulse one
pulse two
-- pulsed 2
fenced-rel path escapes the dir
fenced-abs path escapes the dir
missing File not found
closed

Flows

subflow ~step-fence3 click a branch to expand · @labels scroll to their anchor
read (d, path: "missing.txt")
subflow ~step-fence2 click a branch to expand · @labels scroll to their anchor
read (d, path: "/etc/passwd")
subflow ~step-fence click a branch to expand · @labels scroll to their anchor
read (d, path: "../escape")
subflow ~step-pulse click a branch to expand · @labels scroll to their anchor
read-lines-in (d, path: "input.txt")
subflow ~step-collect click a branch to expand · @labels scroll to their anchor
collect-lines (d, path: "input.txt")
subflow ~step-write click a branch to expand · @labels scroll to their anchor
write (d, path: "hello.txt", content: "hello world\n")
subflow ~step-read click a branch to expand · @labels scroll to their anchor
read (d, path: "hello.txt")
subflow ~probe click a branch to expand · @labels scroll to their anchor
list (d)
flow ~dir click a branch to expand · @labels scroll to their anchor
dir (path: "tests/regression/600_STDLIB/650_FS/650_010_dir_capability/sandbox")

Test Configuration

MUST_RUN