treelite
|
Cross-platform wrapper for common filesystem functions. More...
#include <dmlc/logging.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <libgen.h>
#include <cstring>
Go to the source code of this file.
Functions | |
std::string | GetBasename (const std::string &path) |
extract the base name from a full path. The base name is defined as the component that follows the last '/' in the full path. More... | |
void | HandleSystemError (const std::string &msg) |
void | CreateDirectoryIfNotExist (const char *dirpath) |
Cross-platform wrapper for common filesystem functions.
Copyright (c) 2017 by Contributors
Definition in file filesystem.h.
|
inline |
extract the base name from a full path. The base name is defined as the component that follows the last '/' in the full path.
path | full path |
Definition at line 37 of file filesystem.h.