The error message you receive would be helpful; however, I did notice that in your copy() statement, you have $source/1031/ as your destination, suggesting that you hard-coded the date in originally, and now are failing because $source/$date is being created, but $source/1031 is the destination target.
Hope that helps.
In reply to Re: Files copying from source to dest
by atcroft
in thread Files copying from source to dest
by Ma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |