in reply to File Copy with Array

To elaborate on matija's answer, copy() will not create $pparent/$path/images/$line if $pparent/$path doesn't already exist. Some versions of the cp on Unix will do so, if passed a specific flag (-p, for example), but most will not. It's up to you to make sure that the directory you're copying files into exists before the copy is attempted. Using -d may help.

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose