working readdirSync