added get directory info and update directory info