diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-06-27 17:40:51 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-06-27 18:58:29 -0700 |
| commit | 0ad79a67c76a7fbb26142b319eef069d7ba71557 (patch) | |
| tree | 0c9f29633fbd4d063f57b5599a38ab5e208b5576 /toolsrc/include | |
| parent | 898e3e3710a0221144c6ffd4472e2ef9aea8ad54 (diff) | |
| download | vcpkg-0ad79a67c76a7fbb26142b319eef069d7ba71557.tar.gz vcpkg-0ad79a67c76a7fbb26142b319eef069d7ba71557.zip | |
[vcpkg] Enable storing archives across filesystems
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg/base/files.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg/base/files.h b/toolsrc/include/vcpkg/base/files.h index f16805d0a..1518d2b5c 100644 --- a/toolsrc/include/vcpkg/base/files.h +++ b/toolsrc/include/vcpkg/base/files.h @@ -37,6 +37,10 @@ namespace vcpkg::Files virtual void write_contents(const fs::path& file_path, const std::string& data, std::error_code& ec) = 0; virtual void rename(const fs::path& oldpath, const fs::path& newpath) = 0; virtual void rename(const fs::path& oldpath, const fs::path& newpath, std::error_code& ec) = 0; + virtual void rename_or_copy(const fs::path& oldpath, + const fs::path& newpath, + StringLiteral temp_suffix, + std::error_code& ec) = 0; virtual bool remove(const fs::path& path) = 0; virtual bool remove(const fs::path& path, std::error_code& ec) = 0; virtual std::uintmax_t remove_all(const fs::path& path, std::error_code& ec) = 0; |
