aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Filesystem/je_filesystem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/Filesystem/je_filesystem.h')
-rw-r--r--src/libjin/Filesystem/je_filesystem.h31
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