diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-15 15:33:47 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-15 15:33:47 -0400 |
| commit | e422079fcced744e3a6247aeb12a09a658989072 (patch) | |
| tree | 393d5e52ba67dcc822ccfa9a812198edda5e735d /stdlib/paths.h | |
| parent | 259c7efcf8c3808d8151d8e15f1167ad2b6f2ca7 (diff) | |
Add a Byte datatype
Diffstat (limited to 'stdlib/paths.h')
| -rw-r--r-- | stdlib/paths.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stdlib/paths.h b/stdlib/paths.h index e0d85258..d06d4fdc 100644 --- a/stdlib/paths.h +++ b/stdlib/paths.h @@ -26,8 +26,11 @@ 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); 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); 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); @@ -35,6 +38,7 @@ Array_t Path$files(Path_t path, bool include_hidden); Array_t Path$subdirectories(Path_t path, bool include_hidden); Path_t Path$unique_directory(Path_t path); Text_t Path$write_unique(Path_t path, Text_t text); +Text_t Path$write_unique_bytes(Path_t path, Array_t bytes); Path_t Path$parent(Path_t path); Text_t Path$base_name(Path_t path); Text_t Path$extension(Path_t path, bool full); |
