aboutsummaryrefslogtreecommitdiff
path: root/stdlib/paths.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-16 16:11:43 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-16 16:11:43 -0400
commitb0b2504a947058649ca037ad34b579bb5c43f485 (patch)
treead1213824ca185d14cd33584562fa2f7921cb27e /stdlib/paths.h
parent88ab24c1336ef781c3473d122d0fb521cd842390 (diff)
Update file path API and docs
Diffstat (limited to 'stdlib/paths.h')
-rw-r--r--stdlib/paths.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/stdlib/paths.h b/stdlib/paths.h
index 3efe10da..b971cdf5 100644
--- a/stdlib/paths.h
+++ b/stdlib/paths.h
@@ -24,6 +24,9 @@ bool Path$is_directory(Path_t path, bool follow_symlinks);
bool Path$is_pipe(Path_t path, bool follow_symlinks);
bool Path$is_socket(Path_t path, bool follow_symlinks);
bool Path$is_symlink(Path_t path);
+bool Path$can_read(Path_t path);
+bool Path$can_write(Path_t path);
+bool Path$can_execute(Path_t path);
OptionalMoment_t Path$modified(Path_t path, bool follow_symlinks);
OptionalMoment_t Path$accessed(Path_t path, bool follow_symlinks);
OptionalMoment_t Path$changed(Path_t path, bool follow_symlinks);
@@ -33,6 +36,9 @@ void Path$append(Path_t path, Text_t text, int permissions);
void Path$append_bytes(Path_t path, Array_t bytes, int permissions);
OptionalText_t Path$read(Path_t path);
OptionalArray_t Path$read_bytes(Path_t path, OptionalInt_t limit);
+void Path$set_owner(Path_t path, OptionalText_t owner, OptionalText_t group, bool follow_symlinks);
+OptionalText_t Path$owner(Path_t path, bool follow_symlinks);
+OptionalText_t Path$group(Path_t path, bool follow_symlinks);
void Path$remove(Path_t path, bool ignore_missing);
void Path$create_directory(Path_t path, int permissions);
Array_t Path$children(Path_t path, bool include_hidden);