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 a command to check files_managed integrity #18

Open
cristiroma opened this issue Sep 21, 2020 · 0 comments
Open

Add a command to check files_managed integrity #18

cristiroma opened this issue Sep 21, 2020 · 0 comments

Comments

@cristiroma
Copy link
Member

cristiroma commented Sep 21, 2020

It would be useful to have a robo command to check whether:

  1. Files recorded in files_managed exists on the disk, and report those who do not exist
  2. Files recorded in files_managed but are not recored in files_usage
./vendor/bin/robo files:integrity-check

M = File recorded in file_managed but missing from disk
O = File recorded in file_managed by no record in file_usage

FID PATH Problem Count Usage
123 public://uploads/test.pdf M 15 taxonomy_term(s): 45, 46, node(s): 123, 1234
124 public://uploads/test.pdf O n/a
125 public://uploads/test.pdf M, O n/a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant