Add helper mg_fs_ls()

This commit is contained in:
Sergey Lyubka committed 2024-02-01 18:24:37 +00:00
1 parent f8898b016e
commit cbfa57a955
4 files changed
+42

No files matched your search

+1
View File
@@ -39,6 +39,7 @@ struct mg_fd {
struct mg_fd *mg_fs_open(struct mg_fs *fs, const char *path, int flags);
void mg_fs_close(struct mg_fd *fd);
bool mg_fs_ls(struct mg_fs *fs, const char *path, char *buf, size_t len);
char *mg_file_read(struct mg_fs *fs, const char *path, size_t *size);
bool mg_file_write(struct mg_fs *fs, const char *path, const void *, size_t);
bool mg_file_printf(struct mg_fs *fs, const char *path, const char *fmt, ...);