\CloudAssetsFullCheckTask
Does a full status check on every file AND thumbnail/formatted/generated file.
Checks the following cases:
1. Local file doesn't exist -> downloads from cloud
2. Local file is a placeholder but KeepLocal is true -> downloads from cloud
3. Remote file is a placeholder but local in tact -> clears status and re-uploads
4. Meta data is missing -> restores meta
5. Both remote and local are missing or corrupt -> deletes if thumbnail, flags if not (writes to missing_files.csv)
6. Local needs to be wrapped or uploaded -> uploads as normal (via updateCloudStatus)
- Author: Mark Guinn <mark@adaircreative.com>
Synopsis
class CloudAssetsFullCheckTask
extends BuildTask
{
- // members
- protected string $title = 'Cloud Assets: Full Health Check';
- protected string $description = 'Does a full status check on every file AND thumbnail/formatted/generated file.';
- protected $missing;
- // methods
- public void run()
- protected void processFile()
Hierarchy
Extends
- BuildTask
Members
protected
- $description
- $missing
- $title