-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add overwrite option in mpi-adaptor and file remove utility function
- Loading branch information
Showing
4 changed files
with
118 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright 2023 Lawrence Livermore National Security, LLC and other Metall | ||
// Project Developers. See the top-level COPYRIGHT file for details. | ||
// | ||
// SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
#ifndef METALL_UTILITY_FILESYSTEM_HPP | ||
#define METALL_UTILITY_FILESYSTEM_HPP | ||
|
||
#include <metall/detail/file.hpp> | ||
|
||
namespace metall::utility::filesystem { | ||
|
||
/// \brief Remove a file or directory | ||
/// \return Upon successful completion, returns true; otherwise, false is | ||
/// returned. If the file or directory does not exist, true is returned. | ||
inline bool remove(std::string_view path) { | ||
return metall::mtlldetail::remove_file(path.data()); | ||
} | ||
|
||
} // namespace metall::utility::filesystem | ||
|
||
#endif // METALL_UTILITY_FILESYSTEM_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters