From 1a882936e91826e4d69584745e16a79650272015 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 26 Jul 2018 23:58:12 +0800 Subject: *change name --- src/libjin/fs/filesystem.h | 55 ---------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 src/libjin/fs/filesystem.h (limited to 'src/libjin/fs/filesystem.h') diff --git a/src/libjin/fs/filesystem.h b/src/libjin/fs/filesystem.h deleted file mode 100644 index 15f0b9f..0000000 --- a/src/libjin/fs/filesystem.h +++ /dev/null @@ -1,55 +0,0 @@ -#include "buffer.h" -#include "3rdparty/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; - - smtShared* S; - - }; -} -} \ No newline at end of file -- cgit v1.1-26-g67d0