MediaWiki file: | findMissingFiles.php|
---|---|
Location: | maintenance/ |
Source code: | master • 1.40.0 • 1.39.4 • 1.35.11 |
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 |
Usage
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
See also
- Manual:ImportTextFiles.php
- Manual:ValidateRegistrationFile.php
- Manual:SyncFileBackend.php
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.