craftsmancoding / assetmanager

Asset Manager for MODX Revolution
36 stars 15 forks source link

Library Maintenance: find missing assets #13

Open fireproofsocks opened 10 years ago

fireproofsocks commented 10 years ago

We need a CMP that shows missing assets: this goes 2 ways, including highlighting any db records that reference non-existent files AND crawl the directory to make sure we don't end up with files in the library that aren't accounted

  1. Find Missing Assets: go through each row of the ass_assets table and verify that the file is where the path says it will be. Show errors for any missing file.
  2. Crawl through the assets/lib/ folder and make sure every file in there is supposed to be in there -- each file in there should have a database row associated with it. We don't want any files hiding in there! (This only applies to the folder for the originals, not the "resized/" folder).
fireproofsocks commented 10 years ago

Working on "Verify" functionality... adding stuff to the Asset class...