WordPress at a glance
function is not described

Automattic\Jetpack\Autoloader\jpfd0d177b2d8140b4b20d4474b07b8ed7

Path_Processor::find_directory_with_autoloader() public WC 1.0

Given a file and an array of places it might be, this will find the absolute path and return it.

{} It's a method of the class: Path_Processor{}

No Hooks.

Return

String|false. Returns the absolute path to the directory, otherwise false.

Usage

$Path_Processor = new Path_Processor();
$Path_Processor->find_directory_with_autoloader( $file, $directories_to_check );
$file(string) (required)
The plugin or theme file to resolve.
$directories_to_check(array) (required)
The directories we should check for the file if it isn't an absolute path.

Code of Path_Processor::find_directory_with_autoloader() WC 5.3.0

<?php
public function find_directory_with_autoloader( $file, $directories_to_check ) {
	$file = wp_normalize_path( $file );

	if ( ! $this->is_absolute_path( $file ) ) {
		$file = $this->find_absolute_plugin_path( $file, $directories_to_check );
		if ( ! isset( $file ) ) {
			return false;
		}
	}

	// We need the real path for consistency with __DIR__ paths.
	$file = $this->get_real_path( $file );

	// phpcs:disable WordPress.PHP.NoSilencedErrors.Discouraged
	$directory = @is_file( $file ) ? dirname( $file ) : $file;
	if ( ! @is_file( $directory . '/vendor/composer/jetpack_autoload_classmap.php' ) ) {
		return false;
	}
	// phpcs:enable WordPress.PHP.NoSilencedErrors.Discouraged

	return $directory;
}