* @ingroup Maintenance
*/
-require_once( __DIR__ . '/Maintenance.php' );
+require_once __DIR__ . '/Maintenance.php';
/**
* Copy all files in one container of one backend to another.
? $fsFiles[$srcPath]
: $src->getLocalReference( array( 'src' => $srcPath, 'latest' => 1 ) );
if ( !$fsFile ) {
- if ( $src->fileExists( array( 'src' => $srcPath ) ) === false ) {
+ $src->clearCache( array( $srcPath ) );
+ if ( $src->fileExists( array( 'src' => $srcPath, 'latest' => 1 ) ) === false ) {
$this->error( "$wikiId: File '$srcPath' was listed but does not exist." );
- continue;
} else {
$this->error( "$wikiId: Could not get local copy of $srcPath." );
}