A new project already has a data folder. 

> On Mar 21, 2014, at 2:43 PM, KeithJH <notifications@github.com> wrote:
> 
> In PHP/CommonMethods.php:
> 
> > +    // Set the name of the project
> > +    $returnValue["projectName"] = $projectName;
> > +    return true;
> > +}
> > +
> > +// Copies the data files from $fromProjectName's data folder to $toProjectName's data folder.
> > +function copyDataFiles($fromProjectName, $toProjectName) {
> > +    $offset = "../";
> > +    
> > +    $fromDataFolder = getDataFolder($fromProjectName, $offset);
> > +    $toDataFolder = getDataFolder($toProjectName, $offset);
> > +    
> > +    $contents = array_diff(scandir($fromDataFolder), array('.', '..'));
> > +    
> > +    
> > +    foreach ($contents as $file) {
> Why not copy the data folder whole?
> 
> —
> Reply to this email directly or view it on GitHub.