X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FimportImages.php;h=782f502dec7b0e672805a29539c9ddf68fe17afd;hb=28fb4f671c42e788a57944534655c05aa5afeb81;hp=a8cd2ff9591db666db28adfe460497beb81d0236;hpb=3df2c2c3614c3d53c25f2cf5b4a257db3662dc62;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/importImages.php b/maintenance/importImages.php index a8cd2ff959..782f502dec 100644 --- a/maintenance/importImages.php +++ b/maintenance/importImages.php @@ -64,7 +64,7 @@ $extensions = isset( $options['extensions'] ) : $wgFileExtensions; # Search the path provided for candidates for import -$files = findFiles( $dir, $extensions ); +$files = findFiles( $dir, $extensions, isset( $options['search-recursively'] ) ); # Initialise the user for this operation $user = isset( $options['user'] ) @@ -326,12 +326,13 @@ USAGE: php importImages.php [options] : Path to the directory containing images to be imported Options: ---extensions= Comma-separated list of allowable extensions, defaults to \$wgFileExtensions +--extensions= Comma-separated list of allowable extensions, defaults to \$wgFileExtensions --overwrite Overwrite existing images with the same name (default is to skip them) --limit= Limit the number of images to process. Ignored or skipped images are not counted. --from= Ignore all files until the one with the given name. Useful for resuming aborted imports. should be the file's canonical database form. --skip-dupes Skip images that were already uploaded under a different name (check SHA1) +--search-recursively Search recursively for files in subdirectories --sleep= Sleep between files. Useful mostly for debugging. --user= Set username of uploader, default 'Maintenance script' --check-userblock Check if the user got blocked during import.