diff --git a/deps/node/src/node_file.cc b/deps/node/src/node_file.cc index de5c455c7a..56dc1507ea 100644 --- a/deps/node/src/node_file.cc +++ b/deps/node/src/node_file.cc @@ -1455,7 +1455,7 @@ int MKDirpAsync(uv_loop_t* loop, std::string dirname = path.substr(0, path.find_last_of(kPathSeparator)); if (dirname != path) { - req_wrap->continuation_data()->PushPath(std::move(path)); + req_wrap->continuation_data()->PushPath(path); req_wrap->continuation_data()->PushPath(std::move(dirname)); } else if (req_wrap->continuation_data()->paths().size() == 0) { err = UV_EEXIST;