tags:

views:

38

answers:

1

I have a directory like this :

/images/

and then I have another directory like this

/waiting/pack1/

but I have a bunch of packs, so I was wondering how I could make a script to dump all the contents of these /pack* directories into the /images/ one.

+1  A: 

Use directory recursive iterator to get all the file names. Loop on the result (file names) and move them inside the loop to the desired directory.
You can also try with glob

Itay Moav