copy check only if path is on removable device

This commit is contained in:
David Kocik 2019-12-18 14:09:16 +01:00
parent 11f07f277f
commit ef250ad539
3 changed files with 5 additions and 5 deletions

View file

@ -65,7 +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.
extern int copy_file(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.
extern int check_copy(const std::string& origin, const std::string& copy);