$oldPath =
str_replace( array
('{$bitrix_dir}', '{$name}'
),
array
($localDir,
$vars['name'
]),
$this->locations
[$packageType] );
if (in_array($oldPath,
static::
$checkedDuplicates)) { return;
} if ($oldPath !==
$path &&
file_exists($oldPath) &&
$this->io->
isInteractive()) { $this->io->
writeError(' <error>Duplication of packages:</error>'
);
$this->io->
writeError(' <info>Package ' .
$oldPath . ' will be called instead package ' .
$path . '</info>'
);
while (true
) { switch ($this->io->
ask(' <info>Delete ' .
$oldPath . ' [y,n,?]?</info> ', '?'
)) { case 'y':
$fs =
new Filesystem();
$fs->
removeDirectory($oldPath);
break 2;
case 'n':
break 2;