skeeks\cms\console\controllers\InitController::createSymlink PHP Метод

    function createSymlink($root, $links)
    {
        foreach ($links as $link => $target) {
            echo "      symlink " . $root . "/" . $target . " " . $root . "/" . $link . "\n";
            //first removing folders to avoid errors if the folder already exists
            @rmdir($root . "/" . $link);
            @symlink($root . "/" . $target, $root . "/" . $link);
        }
    }