aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Filesystem/Filesystem.h
blob: f2e39af997c99a431c6180e1758e531021a6c81c (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
#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 mount(const char* root);
        const char* getFull(const char* path);

    private:
        static Filesystem* fs;
        smtShared* S; 

    };

} // filesystem
} // jin