reader detecting directories