mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-24 11:37:12 +01:00
Add fs::create_directories() forwarding function
This commit is contained in:
parent
9b5275bb85
commit
c8ff4e39ba
@ -24,6 +24,7 @@ namespace vcpkg::Files
|
|||||||
virtual bool is_regular_file(const fs::path& path) const = 0;
|
virtual bool is_regular_file(const fs::path& path) const = 0;
|
||||||
virtual bool is_empty(const fs::path& path) const = 0;
|
virtual bool is_empty(const fs::path& path) const = 0;
|
||||||
virtual bool create_directory(const fs::path& path, std::error_code& ec) = 0;
|
virtual bool create_directory(const fs::path& path, std::error_code& ec) = 0;
|
||||||
|
virtual bool create_directories(const fs::path& path, std::error_code& ec) = 0;
|
||||||
virtual void copy(const fs::path& oldpath, const fs::path& newpath, fs::copy_options opts) = 0;
|
virtual void copy(const fs::path& oldpath, const fs::path& newpath, fs::copy_options opts) = 0;
|
||||||
virtual bool copy_file(const fs::path& oldpath, const fs::path& newpath, fs::copy_options opts, std::error_code& ec) = 0;
|
virtual bool copy_file(const fs::path& oldpath, const fs::path& newpath, fs::copy_options opts, std::error_code& ec) = 0;
|
||||||
virtual fs::file_status status(const fs::path& path, std::error_code& ec) const = 0;
|
virtual fs::file_status status(const fs::path& path, std::error_code& ec) const = 0;
|
||||||
|
@ -137,6 +137,10 @@ namespace vcpkg::Files
|
|||||||
{
|
{
|
||||||
return fs::stdfs::create_directory(path, ec);
|
return fs::stdfs::create_directory(path, ec);
|
||||||
}
|
}
|
||||||
|
virtual bool create_directories(const fs::path& path, std::error_code& ec) override
|
||||||
|
{
|
||||||
|
return fs::stdfs::create_directories(path, ec);
|
||||||
|
}
|
||||||
virtual void copy(const fs::path & oldpath, const fs::path & newpath, fs::copy_options opts) override
|
virtual void copy(const fs::path & oldpath, const fs::path & newpath, fs::copy_options opts) override
|
||||||
{
|
{
|
||||||
fs::stdfs::copy(oldpath, newpath, opts);
|
fs::stdfs::copy(oldpath, newpath, opts);
|
||||||
@ -160,6 +164,7 @@ namespace vcpkg::Files
|
|||||||
|
|
||||||
Checks::check_exit(VCPKG_LINE_INFO, count == data.size());
|
Checks::check_exit(VCPKG_LINE_INFO, count == data.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Filesystem & get_real_filesystem()
|
Filesystem & get_real_filesystem()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user