diff options
author | Perttu Ahola <celeron55@gmail.com> | 2010-11-27 01:02:21 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2010-11-27 01:02:21 +0200 |
commit | 4e249fb3fbf75f0359758760d88e22aa5b14533c (patch) | |
tree | 323087d05efbd2ace27b316d4f017cf812a31992 /src/filesys.h | |
download | minetest-4e249fb3fbf75f0359758760d88e22aa5b14533c.tar.gz minetest-4e249fb3fbf75f0359758760d88e22aa5b14533c.tar.bz2 minetest-4e249fb3fbf75f0359758760d88e22aa5b14533c.zip |
Initial files
Diffstat (limited to 'src/filesys.h')
-rw-r--r-- | src/filesys.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/filesys.h b/src/filesys.h new file mode 100644 index 000000000..6222dbfda --- /dev/null +++ b/src/filesys.h @@ -0,0 +1,27 @@ +#ifndef FILESYS_HEADER +#define FILESYS_HEADER + +#include <string> +#include <vector> +#include "exceptions.h" + +namespace fs +{ + +struct DirListNode +{ + std::string name; + bool dir; +}; + +std::vector<DirListNode> GetDirListing(std::string path); + +// Returns true if already exists +bool CreateDir(std::string path); + +bool PathExists(std::string path); + +}//fs + +#endif + |