Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add folder argument to files:scan-app-data #20626

Merged
merged 1 commit into from
Apr 24, 2020
Merged

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Apr 24, 2020

Fix #12327

If you need to rescan something but don't feel like rescanning your
whole preview stash.

Signed-off-by: Roeland Jago Douma [email protected]

If you need to rescan something but don't feel like rescanning your
whole preview stash.

Signed-off-by: Roeland Jago Douma <[email protected]>
Copy link
Member

@juliusknorr juliusknorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@kesselb
Copy link
Contributor

kesselb commented Apr 24, 2020

-1 for your backlog ;)

@@ -67,6 +68,8 @@ protected function configure() {
$this
->setName('files:scan-app-data')
->setDescription('rescan the AppData folder');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
->setDescription('rescan the AppData folder');
->setDescription('rescan the AppData folder')
->addArgument('folder', InputArgument::OPTIONAL, 'The appdata subfolder to scan', '');

@kesselb
Copy link
Contributor

kesselb commented Apr 24, 2020

LGTM 👍

I have some small suggestion while you're at it ;)

  1. Newer versions of symfony/console requires that commands return a integer always: Command::execute() should always return int - deprecate returning null symfony/symfony#33747

image

  1. Don't show the statistics if folder does not exist and return with a non zero exit code.

@rullzer rullzer merged commit 8c07b6e into master Apr 24, 2020
@rullzer rullzer deleted the enh/scan-appdata-folder-arg branch April 24, 2020 11:07
@rullzer
Copy link
Member Author

rullzer commented Apr 24, 2020

@kesselb mind to tackle them or file an issue? It is not really high on my priority list at the moment

@rullzer rullzer mentioned this pull request Apr 24, 2020
11 tasks
@szaimen
Copy link
Contributor

szaimen commented May 5, 2020

A question on this topic:

If you need to rescan something but don't feel like rescanning your
whole preview stash.

That sounds like based on this PR you are now able to exclude the preview folder while scanning the whole app-data folder. Is that the case or do I have to scan all other subfolders manually to be able to exclude the preview folder?

@rullzer
Copy link
Member Author

rullzer commented May 5, 2020

The latter. There is no exclusion just selection of which folder to scan.

@szaimen
Copy link
Contributor

szaimen commented May 5, 2020

Ok, thanks for the answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

files:scan-appdata should take folder argument
5 participants