static function synchroniseFiles($targetFolder, $mapFile) { $structureHandler = new structureHandler($targetFolder, $mapFile); $syncStatus = $structureHandler->synchronise($targetFolder) ? true : false; return json_encode(array("synchroniseSuccessful" => $syncStatus)); }