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
11 lines
318 B
Markdown
11 lines
318 B
Markdown
---
|
|
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")]`
|