You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the outcome that is desired.
As of C++17 std:filesystem has the necessary functionality for most filesystem operations. Move from using Poco to using the std library.
peterfpeterson
changed the title
Migrate from Poco::File and Poco::Path to std::filesystem
Migrate from Poco::File and Poco::Path to std::filesystem - c++17
Aug 26, 2024
Describe the outcome that is desired.
As of C++17 std:filesystem has the necessary functionality for most filesystem operations. Move from using Poco to using the std library.
Recipies for migrating
Poco::File(filename).exists()
->std::filesystem::exists(filename)
Poco::File(filename).isDirectory()
->std::filesystem::is_directory(filename)
Poco::File(filename).remove()
->std::filesystem::remove(filename)
Poco::File(filename).createDirectory()
->std::filesystem::create_directory(filename)
std::filesystem::filesystem_error
extension = "." + Poco::Path(filename).getExtension()
->extension = std::filesystem::path(filename).extension().string()
some common
std::filesystem
operationsSee EWM 7150
The text was updated successfully, but these errors were encountered: