aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Filesystem/Filesystem.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-10-23 12:23:58 +0800
committerchai <chaifix@163.com>2018-10-23 12:23:58 +0800
commit40fc27154fe754181934dc7ee31375e6bdfb33fc (patch)
tree897ad98d759bc308ef66561181ba88b85f2ccd47 /src/libjin/Filesystem/Filesystem.h
parent1480c9445100075c9e1a894eb07c0ef727b509a1 (diff)
*merge from minimal
Diffstat (limited to 'src/libjin/Filesystem/Filesystem.h')
-rw-r--r--src/libjin/Filesystem/Filesystem.h56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/libjin/Filesystem/Filesystem.h b/src/libjin/Filesystem/Filesystem.h
deleted file mode 100644
index ba0fdc5..0000000
--- a/src/libjin/Filesystem/Filesystem.h
+++ /dev/null
@@ -1,56 +0,0 @@
-#include "buffer.h"
-#include "../3rdparty/smount/smount.h"
-
-namespace jin
-{
-namespace filesystem
-{
-
- class Filesystem
- {
- public:
-
- Filesystem();
-
- static Filesystem* get();
-
- /**
- * is a path a directroy or a single file
- */
- bool isDir(const char* path);
-
- /**
- * is a path a directroy or a single file
- */
- bool isFile(const char* path);
-
- /**
- * is path a valid path
- */
- bool exists(const char* path);
-
- /**
- * read a file and return data buffer
- */
- int read(const char* path, Buffer* buffer);
-
- /**
- * set root directory, can only mount once.
- */
- void mount(const char* root);
-
- /**
- * convret relative path to absolute path
- */
- const char* getFull(const char* path);
-
- private:
-
- static Filesystem* fs;
-
- smtShared* S;
-
- };
-
-}
-} \ No newline at end of file