$value) { /** * * Check if the path is a directory * Check if the subdirecory starts with a dot */ if ( is_dir( $dir . $value ) && strrpos( $value, "." ) === false ) { /** * * Call the same function with the new path given as parameter */ $path = self::search_file( $dir . $value . "/", $label ); if ( $path != "" ) { $result = $path; } } } } return $result; } } ?>