diff --git a/src/platform_apple/apple_platform_services.cpp b/src/platform_apple/apple_platform_services.cpp index 388f3672..39e40051 100644 --- a/src/platform_apple/apple_platform_services.cpp +++ b/src/platform_apple/apple_platform_services.cpp @@ -17,6 +17,7 @@ #endif #include +#include #include #include @@ -415,7 +416,8 @@ bool ApplePlatformServices::deletes_recorded_files_on_clear() void ApplePlatformServices::clear_recorded_files(std::string_view recording_path) { #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 (void)recording_path; #endif