/**
* Creates a symbolic link or copy a directory.
*
* @return void
*
* @throws IOException When symlink fails
*/
public function symlink(string
$originDir, string
$targetDir, bool
$copyOnWindows = false
) { self::
assertFunctionExists('symlink'
);
if ('\\' === \DIRECTORY_SEPARATOR
) { $originDir =
strtr($originDir, '/', '\\'
);
$targetDir =
strtr($targetDir, '/', '\\'
);
if ($copyOnWindows) { $this->
mirror($originDir,
$targetDir);
return;
} }