classify dir