public function metadata($file, $list=true, $existCheck=false,
							 $hidden=false, $rev=NULL, $type='sandbox')
	{
		$url = 'https://api.dropbox.com/1/metadata/';
		$params = array();
		$params['list'] = $list;
		if ($rev) $params['rev'] = $rev;
		if ($list) $params['include_deleted'] = 'false';
		$result = $this->doOAuthCall($url, 'GET', $params, $type,$file);
		$result_body = json_decode($result['body'], true);
		if (!array_key_exists('error', $result_body)) {
			if($existCheck) {
				if(array_key_exists('is_deleted',$result_body) && $result_body['is_deleted'])
					return ($hidden) ? true : false;
				else return true;
			}
			else return $result_body;
		} else {
			if($existCheck) return false;
			trigger_error(sprintf(self::E_APIERROR, $result_body['error']));
			return false;
		}
	}