true, 'files' => $files, 'rootPath' => $rootPath ]); } else { echo json_encode([ 'success' => false, 'error' => 'Ordner nicht vorhanden oder keine Leserechte', 'rootPath' => $rootPath ]); }