cprover
file_util.h File Reference
#include <string>
+ Include dependency graph for file_util.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void delete_directory (const std::string &path)
 deletes all files in 'path' and then the directory itself More...
 
std::string get_current_working_directory ()
 
std::string concat_dir_file (const std::string &directory, const std::string &file_name)
 
bool is_directory (const std::string &path)
 

Function Documentation

◆ concat_dir_file()

std::string concat_dir_file ( const std::string &  directory,
const std::string &  file_name 
)
parameters: directory name and file name
Returns
concatenation of directory and file, if the file path is relative

Definition at line 141 of file file_util.cpp.

◆ delete_directory()

void delete_directory ( const std::string &  path)

deletes all files in 'path' and then the directory itself

Definition at line 100 of file file_util.cpp.

◆ get_current_working_directory()

std::string get_current_working_directory ( )
Returns
current working directory

Definition at line 48 of file file_util.cpp.

◆ is_directory()

bool is_directory ( const std::string &  path)

Definition at line 154 of file file_util.cpp.