Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
KIwabuchi committed Dec 19, 2023
1 parent 4669446 commit bce467c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/metall/detail/file.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ inline bool copy_file_dense(const fs::path &source_path,
#ifdef __linux__
inline bool copy_file_sparse_linux(const fs::path &source_path,
const fs::path &destination_path) {
std::string command("cp --sparse=auto " + source_path + " " +
destination_path);
std::string command("cp --sparse=auto " + source_path.string() + " " +
destination_path.string());
const int status = std::system(command.c_str());
const bool success = (status != -1) && !!(WIFEXITED(status));
if (!success) {
Expand Down

0 comments on commit bce467c

Please sign in to comment.