souffle  2.0.2-371-g6315b36
Data Structures | Namespaces | Functions
FileUtil.h File Reference
#include <climits>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <sstream>
#include <string>
#include <utility>
#include <sys/stat.h>
#include <unistd.h>
Include dependency graph for FileUtil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  souffle::TempFileStream
 

Namespaces

 souffle
 

Functions

std::string souffle::absPath (const std::string &path)
 C++-style realpath. More...
 
std::string souffle::baseName (const std::string &filename)
 
std::string souffle::dirName (const std::string &name)
 C++-style dirname. More...
 
std::stringstream souffle::execStdOut (char const *cmd)
 
std::stringstream souffle::execStdOut (std::string const &cmd)
 
bool souffle::existDir (const std::string &name)
 Check whether a directory exists in the file system. More...
 
bool souffle::existFile (const std::string &name)
 Check whether a file exists in the file system. More...
 
std::string souffle::fileExtension (const std::string &path)
 File extension, with all else removed. More...
 
std::string souffle::findTool (const std::string &tool, const std::string &base, const std::string &path)
 
bool souffle::isExecutable (const std::string &name)
 Check whether a given file exists and it is an executable. More...
 
std::string souffle::pathJoin (const std::string &first, const std::string &second)
 Join two paths together; note that this does not resolve overlaps or relative paths. More...
 
std::string souffle::simpleName (const std::string &path)
 File name, with extension removed. More...
 
std::string souffle::tempFile ()
 Generate temporary file. More...
 
std::string souffle::which (const std::string &name)
 Simple implementation of a which tool. More...