Remove legacy file-delete dependency from Apple services
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user