diff options
author | chai <chaifix@163.com> | 2018-10-19 08:36:44 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-19 08:36:44 +0800 |
commit | 7d5f055547e70fa93ee9ac944e62f8d657b9dc55 (patch) | |
tree | 081782a1541854db4b8eb69c4b43081f52711286 /src/libjin/Filesystem/je_filesystem.h | |
parent | 02dd1f38008594048f0e28bad01e7c6d18844198 (diff) |
*修改文件名
Diffstat (limited to 'src/libjin/Filesystem/je_filesystem.h')
-rw-r--r-- | src/libjin/Filesystem/je_filesystem.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/libjin/Filesystem/je_filesystem.h b/src/libjin/Filesystem/je_filesystem.h new file mode 100644 index 0000000..5d65fea --- /dev/null +++ b/src/libjin/Filesystem/je_filesystem.h @@ -0,0 +1,31 @@ +#include "je_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; + + }; + + } // namespace filesystem +} // namespace jin
\ No newline at end of file |