#!/usr/bin/env php . */ define('INSTALLDIR', dirname(__DIR__)); define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public'); $shortoptions = 'y'; $longoptions = array('yes'); $helptext = <<whereAdd('filename IS NOT NULL'); $file->whereAdd('url IS NULL', 'AND'); if ($file->find()) { while ($file->fetch()) { try { $file->getPath(); print '.'; } catch (FileNotFoundException $e) { $file->delete(); print 'x'; } } } print "\nDONE.\n";