Files
marqdo/tests/lib/fs-mid2-smoke.mq.md
T
cflmyandCursor b5c07385e9 feat(markup): finish v0.3 stock migration and green gold
Migrate remaining .mq.md (tests/ext/public/examples), stop elevating local assigns to params, inject form_target in Go libweb, and skip live LLM gold without a real key.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 23:43:44 +08:00

33 lines
634 B
Markdown

---
title: fs mid2 M9 smoke
import fs:lib/fs.mq.md
---
# main
> fs.make_dirs path="m9-tree/nested"
> fs.write_text path="m9-tree/a.txt" text="A"
> fs.write_text path="m9-tree/nested/b.txt" text="B"
**st = > fs.stat path="m9-tree/a.txt"**
> print text=`st`[^size]
> print text=`st`[^is_file]
> print text=`st`[^is_dir]
**w = > fs.walk path="m9-tree"**
**n = > len `w`**
> print text=`n`
**p0 = > at value=`w` index=0**
**p1 = > at value=`w` index=1**
**p2 = > at value=`w` index=2**
> print text=`p0`
> print text=`p1`
> print text=`p2`
> fs.remove_tree path="m9-tree"
**gone = > fs.exists path="m9-tree"**
> print text=`gone`