Great, it works.
I used another script starting from your suggestion.
But now i have other problem:
the cvs the i receive from my dropshipper have a “bad” structure:
“man-clothes-t-shirt”
categories separated by “-“.
I tried to create a function the replace text “t-shirt” with “t shirt”. Works good, i create the child category “t shirt” but wpallimport create also the “T” child and the “SHIRT” child.
Seem that when import begin, before create all categories and childs splitting by “-“.
May u help me?