migrate: own fs/file and path sources with host-authorization assertions

Move the official stdlib file and path modules to their unique source authority
without changing public paths or host authorization. Carry the pre-migration
product assertions, including the bounded read and cleanup semantics.

Refs cflmy/marqdo#9, cflmy/marqdo-std-fs#1
This commit was merged in pull request #2.
This commit is contained in:
cflmy committed 2026-11-26 23:30:29 +08:00
1 parent 3ef21c7de0
commit 63bceae587
10 files changed
+893 -6

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
---
import:
path: "std:path"
---
# @exec path
## main
`return [path.连接(["a", "", "b", "c"]), path.文件名("a/b/c.txt"), path.目录名("a/b/c.txt"), path.扩展名("a/b/c.txt"), path.规范("./a//b/../c"), path.规范("/a/./b/../c"), path.规范("../a/b"), path.是否绝对("/a"), path.是否绝对("a")]`