Skip to content

comments on future replacements of util/file_util.h functions #3214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/util/file_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ Author: Daniel Kroening, [email protected]

#include <string>

// C++17 will allow us to use std::filesystem::path::remove_all
void delete_directory(const std::string &path);

// C++17 will allow us to use std::filesystem::current_path
std::string get_current_working_directory();

// C++17 will allow us to use std::filesystem::path(dir).append(file)
std::string concat_dir_file(const std::string &directory,
const std::string &file_name);

// C++17 will allow us to use std::filesystem::is_directory()
// C++17 will allow us to use std::filesystem::is_directory
bool is_directory(const std::string &path);

#endif // CPROVER_UTIL_FILE_UTIL_H