Manual:FindMissingFiles.php: Difference between revisions
Appearance
Content deleted Content added
m use Template:required and Template:optional |
m simplify |
||
| Line 2: | Line 2: | ||
== Details == |
== Details == |
||
'''findMissingFiles.php''' maintenance script finds registered files with no corresponding file. |
'''findMissingFiles.php''' maintenance script finds registered files with no corresponding file. |
||
== Options == |
== Options == |
||
''findMissingFiles.php'' accepts following three options. |
|||
{| class="wikitable" style="width: 75%; border:1px solid #338800; background-color:#FEFEFE;" |
{| class="wikitable" style="width: 75%; border:1px solid #338800; background-color:#FEFEFE;" |
||
|- |
|- |
||
| Line 22: | Line 23: | ||
php maintenance/findMissingFiles.php [ --start | --mtimeafter | --mtimebefore ] |
php maintenance/findMissingFiles.php [ --start | --mtimeafter | --mtimebefore ] |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
==== Finding all missing files ==== |
==== Finding all missing files ==== |
||
| Line 35: | Line 35: | ||
mwstore://local-backend/local-public/e/4e/Screenshot_2021-08-13_at_11.10.17_AM.png |
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" ==== |
==== Finding all missing files whose name comes at/after "S" ==== |
||
| Line 49: | Line 48: | ||
* [[Manual:validateRegistrationFile.php]] |
* [[Manual:validateRegistrationFile.php]] |
||
* [[Manual:syncFileBackend.php]] |
* [[Manual:syncFileBackend.php]] |
||
[[Category:Maintenance scripts{{#translation:}}]] |
[[Category:Maintenance scripts{{#translation:}}]] |
||
[[Category:File maintenance scripts]] |
[[Category:File maintenance scripts{{#translation:}}]] |
||
Revision as of 02:13, 5 February 2022
| MediaWiki file: findMissingFiles.php | |
|---|---|
| Location: | maintenance/ |
| Source code: | master • 1.46.0 • 1.45.4 • 1.43.9 |
| Classes: | FindMissingFiles |
Details
findMissingFiles.php maintenance script finds registered files with no corresponding file.
Options
| Option | 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 |
Usages
php maintenance/findMissingFiles.php [ --start | --mtimeafter | --mtimebefore ]
Finding all missing files
Terminal
$ 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
Finding all missing files whose name comes at/after "S"
Terminal
$ php maintenance/findMissingFiles.php --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