docs(lib): narrate remaining stdlib modules (M2)
Add module intros and per-function purpose lines across EN/ZH libs, with callable examples on the smaller modules; keep + params and host bodies intact. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
53bc3538da
commit
fecaacd5be
49 files changed
+617
-21
No files matched your search
@@ -3,36 +3,50 @@ title: lib/fs
|
||||
description: English filesystem wrappers
|
||||
---
|
||||
|
||||
English filesystem wrappers
|
||||
|
||||
## read_text
|
||||
+ `path`
|
||||
|
||||
Read UTF-8 text from path.
|
||||
|
||||
*> host_read_text path=`path`*
|
||||
|
||||
## write_text
|
||||
+ `path`
|
||||
+ `text`
|
||||
|
||||
Write text to path (overwrite).
|
||||
|
||||
*> host_write_text path=`path` text=`text`*
|
||||
|
||||
## append_text
|
||||
+ `path`
|
||||
+ `text`
|
||||
|
||||
Append text to path.
|
||||
|
||||
*> host_append_text path=`path` text=`text`*
|
||||
|
||||
## exists
|
||||
+ `path`
|
||||
|
||||
Whether path exists.
|
||||
|
||||
*> host_exists path=`path`*
|
||||
|
||||
## list_dir
|
||||
+ `path`
|
||||
|
||||
List directory entries at path.
|
||||
|
||||
*> host_list_dir path=`path`*
|
||||
|
||||
## make_dir
|
||||
+ `path`
|
||||
|
||||
Create directory at path.
|
||||
|
||||
*> host_make_dir path=`path`*
|
||||
|
||||
## make_dirs
|
||||
@@ -45,6 +59,8 @@ Create directories recursively (`mkdir -p`).
|
||||
## remove
|
||||
+ `path`
|
||||
|
||||
Remove file or empty directory at path.
|
||||
|
||||
*> host_remove path=`path`*
|
||||
|
||||
## remove_tree
|
||||
|
||||
Reference in new issue
Block a user