aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Filesystem/Filesystem.h
blob: b13e207fc3403f58e18e3144156bb521857c8054 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "buffer.h"
#include "../3rdparty/smount/smount.h"

namespace jin
{
	namespace filesystem
	{
		/* Դ */
		class Filesystem
		{
		public:
			static Filesystem* get();

			Filesystem();

			bool isDir(const char* path);
			bool isFile(const char* path);
			bool exists(const char* path);
			int read(const char* path, Buffer* buffer);
			void* read(const char* path, unsigned int* len);
			void mount(const char* root);
			const char* getFull(const char* path);

		private:
			static Filesystem* fs;
			smtShared* S; 

		};

	} // namespace filesystem
} // namespace jin