mirror of
https://github.com/Haui1112/minetest.git
synced 2024-10-23 15:36:14 +02:00
28 lines
358 B
C++
28 lines
358 B
C++
#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
|
|
|