diff options
author | chai <chaifix@163.com> | 2018-05-17 19:10:57 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-05-17 19:10:57 +0800 |
commit | 70cdd89e887641b7423e5d4d05928d14ee014aba (patch) | |
tree | 248b87ae35197a9e5941e65ef20eea359e87a5ed /src/fs/filesystem.h | |
parent | df4b054b8e8d00f7817daaa4cbf6961712cd0b75 (diff) |
change file tree
Diffstat (limited to 'src/fs/filesystem.h')
-rw-r--r-- | src/fs/filesystem.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/fs/filesystem.h b/src/fs/filesystem.h deleted file mode 100644 index fe950e8..0000000 --- a/src/fs/filesystem.h +++ /dev/null @@ -1,55 +0,0 @@ -#include "buffer.h" -#include "libs/smount/smount.h" - -namespace jin -{ -namespace fs -{ - - 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; - - sm_Shared* S; - - }; -} -}
\ No newline at end of file |