Last ID of the added file

How can I get the ID of the last file I just added to the files?

$ data = array (
& # 39; Date & # 39; => date ("Y-m-d"),
& # 39; name & # 39; => $ name,);

$ data2 = array (% s,% s);

$ this-> wpdb-> insert (& # 39; files, $ data, $ data2);