aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Filesystem/Filesystem.h
diff options
context:
space:
mode:
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