public function moveRaw(AssetCollection $asset, $targetPath, Factory\AssetFactory $factory, $disableSourcePath = false)
{
foreach ($asset as $value) {
/** @var $value AssetInterface */
if ($disableSourcePath) {
$value->setTargetPath(($targetPath ? $targetPath : '') . basename($value->getSourcePath()));
} else {
$value->setTargetPath(($targetPath ? $targetPath : '') . $value->getSourcePath());
}
$value = $this->cacheAsset($value);
$this->writeAsset($value, $factory);
}
}