104 extern std::string
real_path(std::string
const & relname);
114 extern std::string
abs_path(std::string
const & filename);
120 extern std::string
cwd();
134 extern std::string
tempname(std::string
const & format);
unsigned obj_type_t
Abstract type of filesystem object types.
permissions get_permissions(std::string const &filename)
bool is_file(obj_type_t type)
Say whether an object type is a file.
bool is_dir(obj_type_t type)
Say whether an object type is a directory.
void make_dir(std::string const &abs_path, bool recursive=true)
Create a directory given an absolute path name.
bool is_absolute(std::string pathname)
Say whether a filename is absolute or relative.
std::string cwd()
Get the absolute real pathname of the current working directory.
bool is_slink(obj_type_t type)
Say whether an object type is a symbolic link.
int set_permissions(std::string const &filename, permissions p)
std::string abs_path(std::string const &filename)
Get the absolute pathname for a filename.
std::string real_path(std::string const &relname)
Get the absolute real pathname of a file or directory name.
obj_type_t obj_type(std::string const &name)
Get the type of the object putatively designated by a filename.
std::string tempname(std::string const &format)
Create a tempory filename from a template.
int permissions
Type of file permissions mask.