XRPrimer (C++ API)  0.6.0
filesystem_utils.cpp File Reference
#include "filesystem_utils.hpp"
#include <cstring>
#include <string>
#include <dirent.h>
#include <limits.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <unistd.h>
Include dependency graph for filesystem_utils.cpp:

Macros

#define PATH_SEPARATOR   ':'
 
#define DIRECTORY_SYMBOL   '/'
 

Functions

bool FileSysUtilsIsRegularFile (const std::string &path)
 
bool FileSysUtilsIsDirectory (const std::string &path)
 
bool FileSysUtilsPathExists (const std::string &path)
 
bool FileSysUtilsIsAbsolutePath (const std::string &path)
 
bool FileSysUtilsGetCurrentPath (std::string &path)
 
bool FileSysUtilsGetParentPath (const std::string &file_path, std::string &parent_path)
 
bool FileSysUtilsGetAbsolutePath (const std::string &path, std::string &absolute)
 
bool FileSysUtilsGetCanonicalPath (const std::string &path, std::string &canonical)
 
bool FileSysUtilsCombinePaths (const std::string &parent, const std::string &child, std::string &combined)
 
bool FileSysUtilsParsePathList (const std::string &path_list, std::vector< std::string > &paths)
 
bool FileSysUtilsFindFilesInPath (const std::string &path, std::vector< std::string > &files)
 

Macro Definition Documentation

◆ DIRECTORY_SYMBOL

#define DIRECTORY_SYMBOL   '/'

◆ PATH_SEPARATOR

#define PATH_SEPARATOR   ':'

Function Documentation

◆ FileSysUtilsCombinePaths()

bool FileSysUtilsCombinePaths ( const std::string &  parent,
const std::string &  child,
std::string &  combined 
)

◆ FileSysUtilsFindFilesInPath()

bool FileSysUtilsFindFilesInPath ( const std::string &  path,
std::vector< std::string > &  files 
)

◆ FileSysUtilsGetAbsolutePath()

bool FileSysUtilsGetAbsolutePath ( const std::string &  path,
std::string &  absolute 
)

◆ FileSysUtilsGetCanonicalPath()

bool FileSysUtilsGetCanonicalPath ( const std::string &  path,
std::string &  canonical 
)

◆ FileSysUtilsGetCurrentPath()

bool FileSysUtilsGetCurrentPath ( std::string &  path)

◆ FileSysUtilsGetParentPath()

bool FileSysUtilsGetParentPath ( const std::string &  file_path,
std::string &  parent_path 
)

◆ FileSysUtilsIsAbsolutePath()

bool FileSysUtilsIsAbsolutePath ( const std::string &  path)

◆ FileSysUtilsIsDirectory()

bool FileSysUtilsIsDirectory ( const std::string &  path)

◆ FileSysUtilsIsRegularFile()

bool FileSysUtilsIsRegularFile ( const std::string &  path)

◆ FileSysUtilsParsePathList()

bool FileSysUtilsParsePathList ( const std::string &  path_list,
std::vector< std::string > &  paths 
)

◆ FileSysUtilsPathExists()

bool FileSysUtilsPathExists ( const std::string &  path)