I'm currently doing a data migration from one Drupal 7 site to another Drupal 7 site. So far I exported the data from the old site into a CSV file and then have it get imported into the new site by looping through each row of each result and doing a $node object and then node_save.
The problem now is how do import/copy the images over? I have the url path from the old site.Do I use file_unmanaged_copy() function to get them into the system? But from the docs, it says I can only use public:// and I'm not sure if http urls to the images would work. Or is there another function I need to use for this purpose?