Implement the init proces for cheking the existence of a directory