mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 03:13:39 +00:00
fix of copy_file_inner
This commit is contained in:
@@ -433,7 +433,7 @@ CopyFileResult copy_file_inner(const std::string& from, const std::string& to, b
|
|||||||
//This error code is ignored
|
//This error code is ignored
|
||||||
boost::system::error_code ec;
|
boost::system::error_code ec;
|
||||||
|
|
||||||
boost::filesystem::permissions(target, perms, error_code);
|
boost::filesystem::permissions(target, perms, ec);
|
||||||
if (ec)
|
if (ec)
|
||||||
BOOST_LOG_TRIVIAL(error) << "Copy file permisions before copy error message: " << ec.message();
|
BOOST_LOG_TRIVIAL(error) << "Copy file permisions before copy error message: " << ec.message();
|
||||||
// This error code is passed up
|
// This error code is passed up
|
||||||
@@ -443,7 +443,7 @@ CopyFileResult copy_file_inner(const std::string& from, const std::string& to, b
|
|||||||
return FAIL_COPY_FILE;
|
return FAIL_COPY_FILE;
|
||||||
}
|
}
|
||||||
ec.clear();
|
ec.clear();
|
||||||
boost::filesystem::permissions(target, perms, error_code);
|
boost::filesystem::permissions(target, perms, ec);
|
||||||
if (ec)
|
if (ec)
|
||||||
BOOST_LOG_TRIVIAL(error) << "Copy file permisions after copy error message: " << ec.message();
|
BOOST_LOG_TRIVIAL(error) << "Copy file permisions after copy error message: " << ec.message();
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
|
|||||||
Reference in New Issue
Block a user