Minetest  5.4.0
filesys.h File Reference
#include <set>
#include <string>
#include <vector>
#include "exceptions.h"
+ Include dependency graph for filesys.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fs::DirListNode
 

Namespaces

 fs
 

Macros

#define DIR_DELIM   "/"
 
#define DIR_DELIM_CHAR   '/'
 
#define FILESYS_CASE_INSENSITIVE   false
 
#define PATH_DELIM   ":"
 

Functions

std::vector< DirListNode > fs::GetDirListing (const std::string &pathstring)
 
bool fs::CreateDir (const std::string &path)
 
bool fs::PathExists (const std::string &path)
 
bool fs::IsPathAbsolute (const std::string &path)
 
bool fs::IsDir (const std::string &path)
 
bool fs::IsDirDelimiter (char c)
 
bool fs::RecursiveDelete (const std::string &path)
 
bool fs::DeleteSingleFileOrEmptyDirectory (const std::string &path)
 
std::string fs::TempPath ()
 
void fs::GetRecursiveDirs (std::vector< std::string > &dirs, const std::string &dir)
 
std::vector< std::string > fs::GetRecursiveDirs (const std::string &dir)
 
void fs::GetRecursiveSubPaths (const std::string &path, std::vector< std::string > &dst, bool list_files, const std::set< char > &ignore)
 
bool fs::RecursiveDeleteContent (const std::string &path)
 
bool fs::CreateAllDirs (const std::string &path)
 
bool fs::CopyFileContents (const std::string &source, const std::string &target)
 
bool fs::CopyDir (const std::string &source, const std::string &target)
 
bool fs::PathStartsWith (const std::string &path, const std::string &prefix)
 
std::string fs::RemoveLastPathComponent (const std::string &path, std::string *removed, int count)
 
std::string fs::RemoveRelativePathComponents (std::string path)
 
std::string fs::AbsolutePath (const std::string &path)
 
const char * fs::GetFilenameFromPath (const char *path)
 
bool fs::safeWriteToFile (const std::string &path, const std::string &content)
 
bool fs::ReadFile (const std::string &path, std::string &out)
 
bool fs::Rename (const std::string &from, const std::string &to)
 

Macro Definition Documentation

◆ DIR_DELIM

#define DIR_DELIM   "/"

◆ DIR_DELIM_CHAR

#define DIR_DELIM_CHAR   '/'

◆ FILESYS_CASE_INSENSITIVE

#define FILESYS_CASE_INSENSITIVE   false

◆ PATH_DELIM

#define PATH_DELIM   ":"