
 Aldemar Calazans Filho - 2016-10-28 17:48:34
Hi.
I tested your code duplicating my html folder in a Xammpp for Windows install, as follows:
- put all your files inside \html\recreate-tree\
- set source as '..\..\html'
- set destination '..\..\html-copy'
It worked well, but returned:
Notice: Undefined variable: result in D:\Var\www\html\recreate-tree\Class.RecreateTree.php on line 188
To solve this problem, I modified your code, adding one line defining $result variable as NULL, as follows:
     $result = NULL;	              // the line I added	
     foreach($arrBytes as $val)  {   // line of your code
By the way: the code is not accepting some combinations of slash to define the paths (the one I showed you is an exception)