try scandir to read dir