Go to the documentation of this file.
10 #ifndef CPROVER_UTIL_FILE_UTIL_H
11 #define CPROVER_UTIL_FILE_UTIL_H
25 const std::string &file_name);
48 void file_rename(
const std::string &old_path,
const std::string &new_path);
50 #endif // CPROVER_UTIL_FILE_UTIL_H
bool create_directory(const std::string &path)
Create a directory with given path C++17 will allow us to use std::filesystem::create_directory.
bool file_exists(const std::string &path)
Check whether file with given path exists.
void delete_directory(const std::string &path)
deletes all files in 'path' and then the directory itself
void file_rename(const std::string &old_path, const std::string &new_path)
Rename a file.
bool file_remove(const std::string &path)
C++17 will allow us to use std::filesystem::remove.
std::string get_current_working_directory()
void set_current_path(const std::string &path)
Set working directory.
bool is_directory(const std::string &path)
std::string concat_dir_file(const std::string &directory, const std::string &file_name)