diff --git a/src/mongo/shell/shell_utils_extended.cpp b/src/mongo/shell/shell_utils_extended.cpp index 3f229a3963cd5..dd416eb6e0972 100644 --- a/src/mongo/shell/shell_utils_extended.cpp +++ b/src/mongo/shell/shell_utils_extended.cpp @@ -225,7 +225,7 @@ namespace mongo { const std::string source = it.next().str(); const std::string destination = it.next().str(); - boost::filesystem::copy(source, destination); + boost::filesystem::copy_file(source, destination); return undefinedReturn; }