Files
marqdo/lib/路径.mq.md
T
cflmyandCursor fecaacd5be 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>
2026-09-14 11:47:35 +08:00

877 B

title, description
title description
lib/路径 路径代数(中层 M2)。无 I/O;分隔符随宿主 OS。

只做路径代数。无 I/O;分隔符随宿主 OS。

拼接

+ `甲`
+ `乙`

拼接路径段甲与乙。

调用例:[路径.拼接] 甲="a" 乙="b"

> host_path_join a=甲 b=乙

拆分

+ `路径`

把路径拆成各段。

> host_path_split path=路径

文件名

+ `路径`

路径的末段文件名。

> host_path_file_name path=路径

父目录

+ `路径`

路径的父目录。

> host_path_parent path=路径

扩展名

+ `路径`

路径的扩展名。

> host_path_extension path=路径

规范化

+ `路径`

规范化路径(处理点段)。

> host_path_normalize path=路径

是绝对

+ `路径`

路径是否为绝对路径。

> host_path_is_absolute path=路径