Refactor function about directory