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_fill (char *path, uint8_t value);
20bool file_get_sectors (char *path, void (*callback) (uint32_t sector_count, uint32_t file_sector, uint32_t cluster_sector, uint32_t cluster_size));
21bool file_has_extensions (char *path, const char *extensions[]);
22
23bool directory_exists (char *path);
24bool directory_delete (char *path);
25bool directory_create (char *path);
26
27
28#endif