public function listContents($directory = '', $recursive = false)
	{
		$contents = parent::listContents($directory, $recursive);

		return $this->encapsulate($contents);
	}
public function listContents($directory = '', $recursive = false)
	{
		$contents = parent::listContents($directory, $recursive);

		return $this->encapsulate($contents);
	}
public function listContents ( $ directory = '' , $ recursive = false ) { $ contents = parent :: listContents ( $ directory , $ recursive ) ; return $ this -> encapsulate ( $ contents ) ; }
Gets the directory contents

@param   string  $directory  The subdirectory to access within the filesystem root
@param   bool    $recursive  Whether or not to iterate down recursively
@return  \Hubzero\Filesystem\Collection
Gets the directory contents