feat(stdlib): Mid M2 path algebra and fs copy/move/temp
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>
This commit is contained in:
1 parent
838a2b425a
commit
94ae6713aa
22 files changed
+618
-25
No files matched your search
@@ -0,0 +1,40 @@
|
||||
---
|
||||
title: lib/path
|
||||
description: Path algebra (Mid M2). No I/O; OS separators.
|
||||
---
|
||||
|
||||
## join
|
||||
+ `a`
|
||||
+ `b`
|
||||
|
||||
**> host_path_join a=`a` b=`b`**
|
||||
|
||||
## split
|
||||
+ `path`
|
||||
|
||||
**> host_path_split path=`path`**
|
||||
|
||||
## file_name
|
||||
+ `path`
|
||||
|
||||
**> host_path_file_name path=`path`**
|
||||
|
||||
## parent
|
||||
+ `path`
|
||||
|
||||
**> host_path_parent path=`path`**
|
||||
|
||||
## extension
|
||||
+ `path`
|
||||
|
||||
**> host_path_extension path=`path`**
|
||||
|
||||
## normalize
|
||||
+ `path`
|
||||
|
||||
**> host_path_normalize path=`path`**
|
||||
|
||||
## is_absolute
|
||||
+ `path`
|
||||
|
||||
**> host_path_is_absolute path=`path`**
|
||||
Reference in new issue
Block a user