feat(resource): add grant-checked fs resource operations

This commit is contained in:
Marqdo Agent committed 2026-11-21 08:20:31 +08:00
1 parent cd90f059b4
commit fbe36bcc43
16 files changed
+812 -31

No files matched your search

+18 -4
View File
@@ -5,12 +5,26 @@ import:
## main
**创建 = fs.创建目录("out")**
**写入 = fs.写文本("out/fs-a.txt", "你好\n")**
**读取 = fs.读文本("out/fs-a.txt")**
**存在 = fs.存在("out/fs-a.txt")**
**复制 = fs.复制文件("out/fs-a.txt", "out/fs-b.txt")**
**元数据 = fs.元数据("out/fs-a.txt")**
**复制读取 = fs.读文本("out/fs-b.txt")**
**列表 = fs.列出目录("out")**
*[写入.value.count, 读取.value, 复制.value.count, 复制读取.value]*
**是文件 = fs.是文件("out/fs-a.txt")**
**是目录 = fs.是目录("out")**
**重命名 = fs.重命名("out/fs-a.txt", "out/fs-b.txt")**
**读取 = fs.读文本("out/fs-b.txt")**
**删除 = fs.删除("out/fs-b.txt")**
**删除目录 = fs.删除("out")**
*[创建.ok, 写入.value.count, 存在.value, 元数据.value.kind, 元数据.value.size, 列表.value, 是文件.value, 是目录.value, 重命名.ok, 读取.value, 删除.ok, 删除目录.ok]*