check_copy function

This commit is contained in:
David Kocik 2019-12-18 13:13:40 +01:00
parent f7e06ded67
commit a68ede6f2d
2 changed files with 25 additions and 1 deletions

View file

@ -67,6 +67,9 @@ extern std::error_code rename_file(const std::string &from, const std::string &t
// Copy a file, adjust the access attributes, so that the target is writable.
extern int copy_file(const std::string &from, const std::string &to);
// Compares two files, returns 0 if identical.
extern int check_copy(const std::string& origin, const std::string& copy);
// Ignore system and hidden files, which may be created by the DropBox synchronisation process.
// https://github.com/prusa3d/PrusaSlicer/issues/1298
extern bool is_plain_file(const boost::filesystem::directory_entry &path);