common: support boost filesystem copy_options.

Co-authored-by: selsta <selsta@sent.at>
This commit is contained in:
0xFFFC0000 2024-04-30 23:20:10 +00:00
parent c8214782fb
commit de9c461a98
No known key found for this signature in database
GPG key ID: 650F7C2B7BDA3819
6 changed files with 33 additions and 10 deletions

View file

@ -67,6 +67,8 @@ namespace tools
}
};
void copy_file(const std::string& from, const std::string& to);
//! A file restricted to process owner AND process. Deletes file on destruction.
class private_file {
std::unique_ptr<std::FILE, close_file> m_handle;