mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Some cleanup of file utils
This commit is contained in:
parent
939adbe70e
commit
7fdfed22f3
1 changed files with 1 additions and 2 deletions
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
namespace openmc {
|
||||
|
||||
// TODO: replace with std::filesysem when switch to C++17 is made
|
||||
// TODO: replace with std::filesystem when switch to C++17 is made
|
||||
//! Determine if a path is a directory
|
||||
//! \param[in] path Path to check
|
||||
//! \return Whether the path is a directory
|
||||
|
|
@ -27,7 +27,6 @@ inline bool file_exists(const std::string& filename)
|
|||
if (is_dir(filename)) return false;
|
||||
|
||||
std::ifstream s {filename};
|
||||
s.seekg(0, std::ios::beg);
|
||||
return s.good();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue