public function findAllWithExtension($extensions)
	{
		$found = [];

		if (!is_array($extensions))
		{
			$extensions = [$extensions];
		}

		foreach ($this->getFlatListOfFiles() as $file)
		{
			$ext = $file->getExtension();
			if (in_array($ext, $extensions))
			{
				$found[] = $file;
			}
		}

		return $found;
	}
public function findAllWithExtension($extensions)
	{
		$found = [];

		if (!is_array($extensions))
		{
			$extensions = [$extensions];
		}

		foreach ($this->getFlatListOfFiles() as $file)
		{
			$ext = $file->getExtension();
			if (in_array($ext, $extensions))
			{
				$found[] = $file;
			}
		}

		return $found;
	}
public function findAllWithExtension ( $ extensions ) { $ found = [ ] ; if ( ! is_array ( $ extensions ) ) { $ extensions = [ $ extensions ] ; } foreach ( $ this -> getFlatListOfFiles ( ) as $ file ) { $ ext = $ file -> getExtension ( ) ; if ( in_array ( $ ext , $ extensions ) ) { $ found [ ] = $ file ; } } return $ found ; }
Finds all items with the given extension

@param   string|array  $extension  The extension(s) to look for
@return  \Hubzero\Filesystem\File
Finds all items with the given extension