Files
marqdo/lib/文件.mq.md
T
cflmyandCursor a53ebb65ee Add host stdlib modules and unify view/run capabilities.
Ship fs/time/sys/json/net L1 libs (plus existing text/table), default-on host caps with soft exit under view, bilingual public/stdlib docs, and design notes for deferred math/foreign.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 10:03:54 +08:00

544 B

title, description
title description
lib/文件 中文文件系统包装

读文本

- 路径

> host_read_text path=路径

写文本

- 路径
- 内容

> host_write_text path=路径 text=内容

追加文本

- 路径
- 内容

> host_append_text path=路径 text=内容

存在

- 路径

> host_exists path=路径

列目录

- 路径

> host_list_dir path=路径

建目录

- 路径

> host_make_dir path=路径

删除

- 路径

> host_remove path=路径