Skip to content

Commit

Permalink
Adjust code for libsql
Browse files Browse the repository at this point in the history
  • Loading branch information
ospfranco committed Dec 31, 2024
1 parent 215b096 commit f789a53
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cpp/libsql/bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ std::string opsqlite_get_db_path(std::string const &db_name,
realpath(location.c_str(), resolved_location);
std::string resolved_location_string = std::string(resolved_location);

if (std::filesystem::create_directories(resolved_location)) {
throw std::runtime_error("Could not create directory: " +
resolved_location_string);
}
// Will return false if the directory already exists, no need to check
std::filesystem::create_directories(resolved_location);

Check failure on line 33 in cpp/libsql/bridge.cpp

View workflow job for this annotation

GitHub Actions / test-ios-libsql

no member named 'filesystem' in namespace 'std'

return resolved_location_string + "/" + db_name;
}
Expand Down

0 comments on commit f789a53

Please sign in to comment.