classify directory