Manual:findMissingFiles.php
MediaWiki file: findMissingFiles.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.42.4 • 1.41.5 • 1.39.11 |
Classes: | FindMissingFiles |
Details
editfindMissingFiles.php maintenance script finds registered files with no corresponding file.
Options
editOption | Required | Default value | |
---|---|---|---|
--start | Start after this file name | Optional | |
--mtimeafter | Only include files changed since this time | Optional | |
--mtimebefore | Only includes files changed before this time | Optional |
Usage
editphp maintenance/run.php findMissingFiles [ --start | --mtimeafter | --mtimebefore ]
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.Finding all missing files
editTerminal
$ php maintenance/run.php findMissingFiles mwstore://local-backend/local-public/a/a4/r-foundation-logo2.png mwstore://local-backend/local-public/2/2a/Screenshot_2021-08-12_at_11.10.17_AM.png mwstore://local-backend/local-public/8/2b/Foo.jpeg mwstore://local-backend/local-public/d/3b/AkaInfo.png mwstore://local-backend/local-public/6/c6/Bar.jpeg mwstore://local-backend/local-public/e/4e/Screenshot_2021-08-13_at_11.10.17_AM.png
Finding all missing files whose name comes at/after "S"
editTerminal
$ php maintenance/run.php findMissingFiles --start "S" mwstore://local-backend/local-public/2/2a/Screenshot_2021-08-12_at_11.10.17_AM.png mwstore://local-backend/local-public/e/4e/Screenshot_2021-08-13_at_11.10.17_AM.png