aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Filesystem/Filesystem.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-09-02 10:37:13 +0800
committerchai <chaifix@163.com>2018-09-02 10:37:13 +0800
commitbbecfee3b69fd2d2015305f3d04c02f87d4924b0 (patch)
tree00cfdb8302aeca9c8e5a4efe782a10e46c91afd8 /src/libjin/Filesystem/Filesystem.h
parent3bb587f0d7c471a70683fa7d26939d21968dea98 (diff)
*update
Diffstat (limited to 'src/libjin/Filesystem/Filesystem.h')
-rw-r--r--src/libjin/Filesystem/Filesystem.h34
1 files changed, 4 insertions, 30 deletions
diff --git a/src/libjin/Filesystem/Filesystem.h b/src/libjin/Filesystem/Filesystem.h
index ba0fdc5..f2e39af 100644
--- a/src/libjin/Filesystem/Filesystem.h
+++ b/src/libjin/Filesystem/Filesystem.h
@@ -9,48 +9,22 @@ namespace filesystem
class Filesystem
{
public:
-
- Filesystem();
-
static Filesystem* get();
- /**
- * is a path a directroy or a single file
- */
- bool isDir(const char* path);
+ Filesystem();
- /**
- * is a path a directroy or a single file
- */
+ bool isDir(const char* path);
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
+} // filesystem
+} // jin \ No newline at end of file