lib/fal/dropbox.php
public function move($from, $to, $type='sandbox')
	{
		$url = 'https://api.dropbox.com/1/fileops/move';
		$params = array('from_path' => $from,'to_path'=>$to);
		$result = $this->doOAuthCall($url, 'POST', $params, $type);
		$result_body = json_decode($result['body'], true);
		if (!array_key_exists('error', $result_body)) {
			return $result_body;
		} else {
			trigger_error(sprintf(self::E_APIERROR, $result_body['error']));
			return false;
		}
	}
public function move($from, $to, $type='sandbox')
	{
		$url = 'https://api.dropbox.com/1/fileops/move';
		$params = array('from_path' => $from,'to_path'=>$to);
		$result = $this->doOAuthCall($url, 'POST', $params, $type);
		$result_body = json_decode($result['body'], true);
		if (!array_key_exists('error', $result_body)) {
			return $result_body;
		} else {
			trigger_error(sprintf(self::E_APIERROR, $result_body['error']));
			return false;
		}
	}
public function move ( $ from , $ to , $ type = 'sandbox' ) { $ url = 'https://api.dropbox.com/1/fileops/move' ; $ params = array ( 'from_path' => $ from , 'to_path' => $ to ) ; $ result = $ this -> doOAuthCall ( $ url , 'POST' , $ params , $ type ) ; $ result_body = json_decode ( $ result [ 'body' ] , true ) ; if ( ! array_key_exists ( 'error' , $ result_body ) ) { return $ result_body ; } else { trigger_error ( sprintf ( self :: E_APIERROR , $ result_body [ 'error' ] ) ) ; return false ; } }
rename a file or directory
@param        $from
@param        $to
@param string $type
@return mixed
rename a file or directory