Copying folder from a directory to another on a remote FTP server
<p>I have a community edition of Alfresco and whenever a new user is created on our database we have to copy a 'default' folder from a directory to the users directory in Alfresco (both the source and destiny directories are in Alfresco server).</p>

<p>I have found many recursive copy functions but none of them worked for me, since they use functions like <code>opendir()</code> and <code>dir()</code> which aren't available to use on a remote server.</p>