/*
* Working from /home/ to /user/ to /wordpress/ see if that file exists within
* the current folder, If it's found, change into it and follow through looking
* for it. If it can't find WordPress down that route, it'll continue onto the next
* folder level, and see if that matches, and so on. If it reaches the end, and still
* can't find it, it'll return false for the entire function.
*/
if ( isset( $files[ $key ] ) ) { // Let's try that folder:
$newdir =
trailingslashit( path_join( $base,
$key ) );
if ( $this->verbose
) { /* translators: %s: Directory name. */
printf( "\n" .
__( 'Changing to %s'
) . "<br />\n",
$newdir );
} // Only search for the remaining path tokens in the directory, not the full path again.
$newfolder =
implode( '/',
array_slice( $folder_parts,
$index + 1
) );
$ret =
$this->
search_for_folder( $newfolder,
$newdir,
$loop );
if ( $ret ) {