No, scandir() returns false if it fails