Modifying SD library code

Hi,
I came across a programmer I want to build on Solderlabs.de . I customized the PCB, change pins and now I have issues with compiling hte code. The code that gives errors:

void printDirectory(void) 
{
   dir.open(&root, "hex", O_READ);  
   while (0 == dir.get_next_entry(my_file_name))
   {
     Serial.println(my_file_name);
     num_hex_files++;
   }
   Serial.println();
   dir.close();   
}

and also here:

//Get selected image file
    dir.open(&root, "hex", O_READ);
  
    for (byte i=0; i<selected_index; i++)
    {
      dir.get_next_entry(my_file_name);
    }
  
    char file_name[] = "________.hex";
    for(byte i=0; i<8; i++){file_name[i] = my_file_name[i];}
  
    Serial.print(my_file_name); 
    Serial<< F(".hex* \n");
  
    Serial<< F("Parsing parameter ... \n");
    
    entry.open(&dir, file_name, O_READ);

the dir.get_next_entry will always give error when compiling.

Any idea what SD library was used (they wrote internal) or how to modify the code? This is higher C level than mine.
Thanks for help

Feel you gave us enough information?

J-M-L:
Feel you gave us enough information?

If you do, you are the only one.