Rewrite console line
parent
58e3b87cc4
commit
2ece006f0d
|
@ -129,6 +129,8 @@ class Index extends Command
|
||||||
// Print file type support info
|
// Print file type support info
|
||||||
if ($someUnsupported) {
|
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");
|
$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
|
// Get options and arguments
|
||||||
|
@ -257,12 +259,12 @@ 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);
|
$this->output->write('Skipping folder '.$folderPath." because of .nomedia file\r");
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->output->writeln('Scanning folder '.$folderPath);
|
$this->output->write('Scanning folder '.$folderPath."\r");
|
||||||
|
|
||||||
$nodes = $folder->getDirectoryListing();
|
$nodes = $folder->getDirectoryListing();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue