HM3
Hierarchical Multi-physics Multi-scale Methods
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
hm3::fs Namespace Reference

File system utilities. More...

Functions

 CONCEPT_REQUIRES (std::is_convertible< system::tag_t, system::posix >{}) bool exists_(string const &file_path)
 Does file file_path exist? More...
 
std::pair< string, string > split_extension (string const &file_path)
 Splits extension from file path -> (path_without_extension, extension)
 
std::pair< string, string > split_dir (string const &file_path)
 Splits directory from the file path -> (directory, file_name)
 
std::tuple< string, string,
string > 
split_path (string const &file_path)
 Splits file path -> (directory, file_base_name, extension)
 
bool binary_identical (string const &file_name0, string const &file_name1, mpi::comm const &comm)
 Returns true if both files are bitwise identical.
 

Detailed Description

File system utilities.

Function Documentation

hm3::fs::CONCEPT_REQUIRES ( std::is_convertible< system::tag_t, system::posix >{}  ) const

Does file file_path exist?

Removes the file file_path if it exists.

Returns
True if file existed, false otherwise.