Add static-export:entity:check-integrity Drush command
We need a system to detect if exported files in data directory belong to an entity. If the exported file is not deleted when the entity is indeed deleted, resulting site will contain stale data. This command fixes those edge cases.
Please note that this command need to check if the Stream Wrapper in use is local (i.e.- static-local://
) or remote (i.e.- s3://
), since this command works only with local Stream Wrappers.
It makes extensive use of io()
to present a progress bar and a table with options:
Edited by Alberto Silva