aboutsummaryrefslogtreecommitdiff
path: root/stdlib/paths.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-15 15:50:28 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-15 15:50:28 -0400
commit33876323aa2e3b1994a60b294cfd3f7fd0b35f68 (patch)
treed673f2f56cb22ff30cdf4d3a8f05eebebc801047 /stdlib/paths.h
parent4ad7509013bcd383c2060c3659733edb17221fb3 (diff)
Update path reading APIs to use optional values instead of erroring
Diffstat (limited to 'stdlib/paths.h')
-rw-r--r--stdlib/paths.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/paths.h b/stdlib/paths.h
index d06d4fdc..65d98a0c 100644
--- a/stdlib/paths.h
+++ b/stdlib/paths.h
@@ -29,8 +29,8 @@ void Path$write(Path_t path, Text_t text, int permissions);
void Path$write_bytes(Path_t path, Array_t bytes, int permissions);
void Path$append(Path_t path, Text_t text, int permissions);
void Path$append_bytes(Path_t path, Array_t bytes, int permissions);
-Text_t Path$read(Path_t path);
-Array_t Path$read_bytes(Path_t path);
+OptionalText_t Path$read(Path_t path);
+OptionalArray_t Path$read_bytes(Path_t path);
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);