6#ifndef EGT_DETAIL_FILESYSTEM_H
7#define EGT_DETAIL_FILESYSTEM_H
14#include <egt/detail/meta.h>
44EGT_API
bool exists(
const std::string& path);
51EGT_API std::vector<unsigned char>
read_file(
const std::string& path);
58EGT_API std::string
readlink(
const std::string& path);
65EGT_API std::string
abspath(
const std::string& path);
75EGT_API std::string
cwd();
88EGT_API std::vector<std::string>
glob(
const std::string& pattern);
EGT_API char path_separator()
Get the separator character in a list of paths.
EGT_API std::string extract_dirname(const std::string &path)
Extract the directory name from a path.
EGT_API bool exists(const std::string &path)
Determine if a file exists.
EGT_API std::string abspath(const std::string &path)
Convert a relative path to an absolute path.
EGT_API std::string cwd()
Get the current working directory.
EGT_API std::string readlink(const std::string &path)
Read the path of a symlink.
EGT_API std::vector< std::string > glob(const std::string &pattern)
Given a glob pattern, return a vector of matching path names.
EGT_API std::string extract_filename(const std::string &path)
Extract the filename portion of a path or URL.
EGT_API std::string exe_pwd()
Get the directory to the current executable.
EGT_API std::vector< unsigned char > read_file(const std::string &path)
Read the contents of a file into a vector.
EGT framework namespace.
Definition animation.h:24