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_fs_prefix (char *path);
14
15bool file_exists (char *path);
16int64_t file_get_size (char *path);
17bool file_allocate (char *path, size_t size);
18bool file_fill (char *path, uint8_t value);
19bool file_has_extensions (char *path, const char *extensions[]);
20
21bool directory_exists (char *path);
22bool directory_create (char *path);
23
24
25#endif