Remove legacy file-delete dependency from Apple services

This commit is contained in:
2026-06-17 15:21:24 +02:00
parent 68917203e8
commit 3edb6617d0

View File

@@ -17,6 +17,7 @@
#endif #endif
#include <array> #include <array>
#include <filesystem>
#include <memory> #include <memory>
#include <utility> #include <utility>
@@ -415,7 +416,8 @@ bool ApplePlatformServices::deletes_recorded_files_on_clear()
void ApplePlatformServices::clear_recorded_files(std::string_view recording_path) void ApplePlatformServices::clear_recorded_files(std::string_view recording_path)
{ {
#if defined(__APPLE__) #if defined(__APPLE__)
delete_all_files_in_path(std::string(recording_path)); std::error_code error;
std::filesystem::remove_all(std::filesystem::path(recording_path), error);
#else #else
(void)recording_path; (void)recording_path;
#endif #endif