From 2ece006f0ddac6838ceaf54ced4a2589100eb16c Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 25 Oct 2022 10:30:17 -0700 Subject: [PATCH] Rewrite console line --- lib/Command/Index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Command/Index.php b/lib/Command/Index.php index 6e5f05c2..9ba6e35c 100644 --- a/lib/Command/Index.php +++ b/lib/Command/Index.php @@ -129,6 +129,8 @@ class Index extends Command // Print file type support info if ($someUnsupported) { $output->writeln("\nSome file types are not supported by your preview provider.\nPlease see https://github.com/pulsejet/memories/wiki/File-Type-Support\n"); + } else { + $output->writeln("\nAll file types are supported by your preview provider.\n"); } // Get options and arguments @@ -257,12 +259,12 @@ class Index extends Command // Respect the '.nomedia' file. If present don't traverse the folder if ($folder->nodeExists('.nomedia')) { - $this->output->writeln('Skipping folder '.$folderPath); + $this->output->write('Skipping folder '.$folderPath." because of .nomedia file\r"); return; } - $this->output->writeln('Scanning folder '.$folderPath); + $this->output->write('Scanning folder '.$folderPath."\r"); $nodes = $folder->getDirectoryListing();