public function findFirstWithExtension($extension)
	{
		foreach ($this->getFlatListOfFiles() as $file)
		{
			if ($file->hasExtension($extension))
			{
				return $file;
			}
		}

		return false;
	}
public function findFirstWithExtension($extension)
	{
		foreach ($this->getFlatListOfFiles() as $file)
		{
			if ($file->hasExtension($extension))
			{
				return $file;
			}
		}

		return false;
	}
public function findFirstWithExtension ( $ extension ) { foreach ( $ this -> getFlatListOfFiles ( ) as $ file ) { if ( $ file -> hasExtension ( $ extension ) ) { return $ file ; } } return false ; }
Finds the first item with the given extension

@param   string  $extension  The extension to look for
@return  \Hubzero\Filesystem\File|bool
Finds the first item with the given extension