InfyOm\Generator\Commands\Publish\PublishBaseCommand::publishDirectory PHP 메소드

publishDirectory() 공개 메소드

public publishDirectory ( $sourceDir, $destinationDir, $dirName, boolean $force = false ) : boolean | void
$sourceDir
$destinationDir
$dirName
$force boolean
리턴 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;
    }