Simplify dir file.