private static function copyAppDir($ciBasePath, $appDirectory) { if (!file_exists($appDirectory . "/controllers")) { $source = realpath($ciBasePath . '/application'); Filesystem::copyDirectory($source, $appDirectory); Filesystem::copyDirectory(realpath(__DIR__ . "/Resources/app"), $appDirectory); self::$newCopy = true; } }