mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 02:37:51 -06:00
copy file into .tmp and then rename if correct
This commit is contained in:
parent
dafd768b34
commit
31b134bfcc
2 changed files with 34 additions and 18 deletions
|
@ -65,6 +65,7 @@ extern std::string normalize_utf8_nfc(const char *src);
|
|||
extern std::error_code rename_file(const std::string &from, const std::string &to);
|
||||
|
||||
// Copy a file, adjust the access attributes, so that the target is writable.
|
||||
int copy_file_inner(const std::string &from, const std::string &to);
|
||||
extern int copy_file(const std::string &from, const std::string &to, const bool with_check = false);
|
||||
|
||||
// Compares two files, returns 0 if identical.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue