check dir recursively