mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Initial files
This commit is contained in:
commit
4e249fb3fb
71 changed files with 22664 additions and 0 deletions
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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue