Manual:FindMissingFiles.php: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
m added Category:File maintenance scripts using HotCat |
||
| Line 33: | Line 33: | ||
[[Category:Maintenance scripts{{#translation:}}]] |
[[Category:Maintenance scripts{{#translation:}}]] |
||
[[Category:File maintenance scripts]] |
|||
Revision as of 21:39, 17 September 2021
| MediaWiki file: findMissingFiles.php | |
|---|---|
| Location: | maintenance/ |
| Source code: | master • 1.46.0 • 1.45.4 • 1.43.9 |
| Classes: | FindMissingFiles |
findMissingFiles.php maintenance script finds registered files with no corresponding file.
Options
findMissingFiles.php accepts following three options.
| Option | Required | Default value | |
|---|---|---|---|
| --start | Start after this file name | false | |
| --mtimeafter | Only include files changed since this time | false | |
| --mtimebefore | Only includes files changed before this time | false |
Usages
php maintenance/findMissingFiles.php [ --start | --mtimeafter | --mtimebefore ]
Terminal
jay@pc:~$ php maintenance/findMissingFiles.php 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