Add lib/path (EN/ZH) and thicken fs with sandboxed copy_file, move, and make_temp, with golds and public demos. Co-authored-by: Cursor <cursoragent@cursor.com>
41 lines
589 B
Markdown
41 lines
589 B
Markdown
---
|
|
title: lib/路径
|
|
description: 路径代数(中层 M2)。无 I/O;分隔符随宿主 OS。
|
|
---
|
|
|
|
## 拼接
|
|
+ `甲`
|
|
+ `乙`
|
|
|
|
**> 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=`路径`**
|