diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-03 16:58:12 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-03 16:58:12 -0500 |
| commit | 52e3d3fe6f2c3e5051affe155fed364d1a5d623c (patch) | |
| tree | 9491276759a394e4f7e4678f53dc3e8dc68bc28c /stdlib/paths.h | |
| parent | 7ddb2ffb02f9fff5d78c990165d1008248628c66 (diff) | |
Update Path:read_bytes() API to take a byte count
Diffstat (limited to 'stdlib/paths.h')
| -rw-r--r-- | stdlib/paths.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stdlib/paths.h b/stdlib/paths.h index 551467e9..989e5d84 100644 --- a/stdlib/paths.h +++ b/stdlib/paths.h @@ -7,6 +7,7 @@ #include "types.h" #include "datatypes.h" +#include "optionals.h" #define Path_t Text_t #define OptionalPath_t Text_t @@ -34,7 +35,7 @@ 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); OptionalText_t Path$read(Path_t path); -OptionalArray_t Path$read_bytes(Path_t path); +OptionalArray_t Path$read_bytes(Path_t path, OptionalInt_t limit); 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); |
