old-stable24
Varun Patil 2022-10-25 11:48:54 -07:00
parent 060bc58505
commit 9a47224c09
1 changed files with 4 additions and 3 deletions

View File

@ -197,7 +197,7 @@ class Index extends Command
$endTime = microtime(true); $endTime = microtime(true);
$execTime = (int) (($endTime - $startTime) * 1000) / 1000; $execTime = (int) (($endTime - $startTime) * 1000) / 1000;
$nTotal = $this->nInvalid + $this->nSkipped + $this->nProcessed; $nTotal = $this->nInvalid + $this->nSkipped + $this->nProcessed;
$this->output->writeln("=========================================="); $this->output->writeln('==========================================');
$this->output->writeln("Checked {$nTotal} files in {$execTime} sec"); $this->output->writeln("Checked {$nTotal} files in {$execTime} sec");
$this->output->writeln($this->nInvalid.' not valid media items'); $this->output->writeln($this->nInvalid.' not valid media items');
$this->output->writeln($this->nSkipped.' skipped because unmodified'); $this->output->writeln($this->nSkipped.' skipped because unmodified');
@ -265,8 +265,9 @@ class Index extends Command
// Respect the '.nomedia' file. If present don't traverse the folder // Respect the '.nomedia' file. If present don't traverse the folder
if ($folder->nodeExists('.nomedia')) { if ($folder->nodeExists('.nomedia')) {
$this->output->writeln('Skipping folder '.$folderPath." because of .nomedia file"); $this->output->writeln('Skipping folder '.$folderPath.' because of .nomedia file');
$this->previousLineLength = 0; $this->previousLineLength = 0;
return; return;
} }
@ -276,7 +277,7 @@ class Index extends Command
$this->output->write("\r".str_repeat(' ', $this->previousLineLength)."\r"); $this->output->write("\r".str_repeat(' ', $this->previousLineLength)."\r");
} }
$this->output->write($line."\r"); $this->output->write($line."\r");
$this->previousLineLength = strlen($line); $this->previousLineLength = \strlen($line);
$nodes = $folder->getDirectoryListing(); $nodes = $folder->getDirectoryListing();