InfyOm\Generator\Commands\Publish\PublishBaseCommand::publishDirectory PHP Method

publishDirectory() public method

public publishDirectory ( $sourceDir, $destinationDir, $dirName, boolean $force = false ) : boolean | void
$sourceDir
$destinationDir
$dirName
$force boolean
return boolean | void
    public function publishDirectory($sourceDir, $destinationDir, $dirName, $force = false)
    {
        if (file_exists($destinationDir) && !$force && !$this->confirmOverwrite($destinationDir)) {
            return;
        }
        File::makeDirectory($destinationDir, 493, true, true);
        File::copyDirectory($sourceDir, $destinationDir);
        $this->comment($dirName . ' published');
        $this->info($destinationDir);
        return true;
    }