Import Product with category and sub category

Create methode :
searchByPath($id_lang, $path,$objectToCreate = null, $MethodetoCreate = null)
search an category by path like :
home/catg1/undercatg2