unify Host and Embedded versions

This commit is contained in:
philippe44
2023-05-10 12:26:43 +02:00
parent fa91879535
commit bc4e56eabc
3 changed files with 15 additions and 6 deletions

View File

@@ -288,7 +288,11 @@ void reader::extract_all_files(std::string dest_directory) {
auto fileName = get_next_file_name();
// 0 is the normal file type, skip apple's ._ files
#if __cplusplus >= 202002L
if (fileType == '0' && !fileName.starts_with("._")) {
#else
if (fileType == '0' && fileName.find("._") != 0) {
#endif
std::string path = dest_directory + "/" + fileName;
size_t pos = 0;