private function writeProgress($count, $total, $path, $percent = NULL, $color = NULL)
{
$len = strlen((string) $total);
$s = sprintf("(% {$len}d of %-{$len}d) %s", $count, $total, $path);
if ($percent === NULL) {
$this->logger->log($s, $color);
} else {
$this->logger->progress($s . ' [' . round($percent) . "%]");
}
}