mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Initial files
This commit is contained in:
27
src/filesys.h
Normal file
27
src/filesys.h
Normal file
@@ -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
|
||||
|
Reference in New Issue
Block a user