N64FlashcartMenu
Loading...
Searching...
No Matches
fs.h
1#ifndef UTILS_FS_H__
2#define UTILS_FS_H__
3
4
5#include <stdbool.h>
6#include <stddef.h>
7#include <stdint.h>
8
9
10#define FS_SECTOR_SIZE (512)
11
12
13char *strip_sd_prefix (char *path);
14
15bool file_exists (char *path);
16size_t file_get_size (char *path);
17bool file_delete (char *path);
18bool file_allocate (char *path, size_t size);
19bool file_get_sectors (char *path, uint32_t *sectors, size_t entries);
20bool file_has_extensions (char *path, const char *extensions[]);
21
22bool directory_exists (char *path);
23bool directory_delete (char *path);
24bool directory_create (char *path);
25
26
27#endif