diff options
author | supermerill <merill@free.fr> | 2022-07-24 17:13:36 +0300 |
---|---|---|
committer | supermerill <merill@free.fr> | 2022-08-10 22:00:28 +0300 |
commit | c5dbc6d342020c2e5dc2639ed324180f88f354cc (patch) | |
tree | 57102834434909729e8393e441281d706651b21e /src/libslic3r/utils.cpp | |
parent | 63e5344599a177943a7775b65db35f444c2fe9da (diff) |
Using internal copy_file instead of the boost one, to not fail with weird filesystems.
supermerill/SuperSlicer#2938
Diffstat (limited to 'src/libslic3r/utils.cpp')
-rw-r--r-- | src/libslic3r/utils.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libslic3r/utils.cpp b/src/libslic3r/utils.cpp index a17e9ab06..e90871d79 100644 --- a/src/libslic3r/utils.cpp +++ b/src/libslic3r/utils.cpp @@ -678,6 +678,11 @@ CopyFileResult copy_file_inner(const std::string& from, const std::string& to, s { const boost::filesystem::path source(from); const boost::filesystem::path target(to); + return copy_file_inner(source, target, error_message); +} + +CopyFileResult copy_file_inner(const boost::filesystem::path& source, const boost::filesystem::path& target, std::string& error_message) +{ static const auto perms = boost::filesystem::owner_read | boost::filesystem::owner_write | boost::filesystem::group_read | boost::filesystem::others_read; // aka 644 // Make sure the file has correct permission both before and after we copy over it. |