Remove legacy file-delete dependency from Apple services
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#endif
|
||||
|
||||
#include <array>
|
||||
#include <filesystem>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user