diff options
author | chai <chaifix@163.com> | 2018-09-02 10:37:13 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-09-02 10:37:13 +0800 |
commit | bbecfee3b69fd2d2015305f3d04c02f87d4924b0 (patch) | |
tree | 00cfdb8302aeca9c8e5a4efe782a10e46c91afd8 /src/libjin/Filesystem/Filesystem.h | |
parent | 3bb587f0d7c471a70683fa7d26939d21968dea98 (diff) |
*update
Diffstat (limited to 'src/libjin/Filesystem/Filesystem.h')
-rw-r--r-- | src/libjin/Filesystem/Filesystem.h | 34 |
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 |