Add scandir functions