From bbecfee3b69fd2d2015305f3d04c02f87d4924b0 Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 2 Sep 2018 10:37:13 +0800 Subject: *update --- src/libjin/Filesystem/Filesystem.h | 34 ++++------------------------------ 1 file changed, 4 insertions(+), 30 deletions(-) (limited to 'src/libjin/Filesystem/Filesystem.h') 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 -- cgit v1.1-26-g67d0