Functions | Variables
filesystem.h File Reference
#include <dirent.h>
#include <sys/stat.h>
Include dependency graph for filesystem.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static std::string get_parent (std::string const &path, std::string *basename=nullptr)
 
static void glob (const std::string &directory, const std::string &spec, std::function< void(std::string const &) > fn, bool recursive=true, bool includeDirectories=false)
 
static void glob_rec (const std::string &directory, const std::string &wildchart, std::vector< std::string > &result, bool recursive, bool includeDirectories, const std::string &pathPrefix)
 
static bool isDir (const std::string &path, DIR *dir)
 
static bool isPathSeparator (char c)
 
std::string join (const std::string &base, const std::string &path)
 
static bool wildcmp (const char *string, const char *wild)
 

Variables

const char dir_separators [] = "/"
 
static const char native_separator = '/'
 

Function Documentation

static std::string get_parent ( std::string const &  path,
std::string basename = nullptr 
)
static

Definition at line 284 of file filesystem.h.

static void glob ( const std::string directory,
const std::string spec,
std::function< void(std::string const &) >  fn,
bool  recursive = true,
bool  includeDirectories = false 
)
static

Definition at line 269 of file filesystem.h.

static void glob_rec ( const std::string directory,
const std::string wildchart,
std::vector< std::string > &  result,
bool  recursive,
bool  includeDirectories,
const std::string pathPrefix 
)
static

Definition at line 219 of file filesystem.h.

static bool isDir ( const std::string path,
DIR *  dir 
)
static

Definition at line 187 of file filesystem.h.

static bool isPathSeparator ( char  c)
inlinestatic

Definition at line 108 of file filesystem.h.

std::string join ( const std::string base,
const std::string path 
)

Definition at line 113 of file filesystem.h.

static bool wildcmp ( const char *  string,
const char *  wild 
)
static

Definition at line 138 of file filesystem.h.

Variable Documentation

const char dir_separators[] = "/"

Definition at line 97 of file filesystem.h.

const char native_separator = '/'
static

Definition at line 104 of file filesystem.h.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:25