blob: ffc0c526d73b36567af87382e37e3f32499d983d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include "buffer.h"
#include "../3rdparty/smount/smount.h"
namespace jin
{
namespace filesystem
{
class Filesystem
{
public:
static Filesystem* get();
Filesystem();
bool isDir(const char* path);
bool isFile(const char* path);
bool exists(const char* path);
int read(const char* path, Buffer* buffer);
void* read(const char* path, unsigned int* len);
void mount(const char* root);
const char* getFull(const char* path);
private:
static Filesystem* fs;
smtShared* S;
};
} // filesystem
} // jin
|