core-bundle/src/Resources/contao/models/FilesModel.php
public static function findMultipleByPaths($arrPaths, array $arrOptions=array())
	{
		if (empty($arrPaths) || !\is_array($arrPaths))
		{
			return null;
		}

		$t = static::$strTable;

		if (!isset($arrOptions['order']))
		{
			$arrOptions['order'] = Database::getInstance()->findInSet("$t.path", $arrPaths);
		}

		return static::findBy(array("$t.path IN(" . implode(',', array_fill(0, \count($arrPaths), '?')) . ")"), $arrPaths, $arrOptions);
	}
public static function findMultipleByPaths($arrPaths, array $arrOptions=array())
	{
		if (empty($arrPaths) || !\is_array($arrPaths))
		{
			return null;
		}

		$t = static::$strTable;

		if (!isset($arrOptions['order']))
		{
			$arrOptions['order'] = Database::getInstance()->findInSet("$t.path", $arrPaths);
		}

		return static::findBy(array("$t.path IN(" . implode(',', array_fill(0, \count($arrPaths), '?')) . ")"), $arrPaths, $arrOptions);
	}
Find multiple files by their paths

@param array $arrPaths   An array of file paths
@param array $arrOptions An optional options array

@return Collection|FilesModel[]|FilesModel|null A collection of models or null if there are no files