Process directory