Restructure directory, and add function : check file existing or not