Index: module/Restore/src/Restore/Controller/RestoreController.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- module/Restore/src/Restore/Controller/RestoreController.php	(revision 7d9c6270c5c01c7944a09d2777d8d08b0cc305f1)
+++ module/Restore/src/Restore/Controller/RestoreController.php	(date 1516708101000)
@@ -326,6 +326,7 @@
 
       $dnum = count($this->directories);
       $fnum = count($this->files);
+      //$tmp is the number of directories minus . and ..
       $tmp = $dnum;
 
       // Build Json for JStree
@@ -336,10 +337,12 @@
          foreach($this->directories as $dir) {
             if($dir['name'] == ".") {
                --$dnum;
+               --$tmp;
                next($this->directories);
             }
             elseif($dir['name'] == "..") {
                --$dnum;
+               --$tmp;
                next($this->directories);
             }
             else {
@@ -360,7 +363,7 @@
 
       }
 
-      if( $tmp > 2 && $fnum > 0 ) {
+      if( $tmp > 0 && $fnum > 0 ) {
          $items .= ",";
       }
 
