lib/fal/dropbox.php
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;
		}
	}
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;
		}
	}
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 ; } }
perform meta request
@param string $file          full file pathname
@param bool   $list          include file list, if $file is a dir
@param bool   $existCheck    return bool instead of json or error
@param bool   $hidden        include deleted files
@param null   $rev           select file version
@param string $type          storage type [sandbox|dropbox]
@return bool|mixed
perform meta request