You are here

public function dropbox::create_folder in Dropbox Client 7.3

Same name and namespace in other branches
  1. 7.4 dropbox.php \dropbox::create_folder()
  2. 7 dropbox.php \dropbox::create_folder()
  3. 7.2 dropbox.php \dropbox::create_folder()

Create a folder relative to the user's Dropbox root or the user's application sandbox folder.

Parameters

string $path The path to the new folder to create.:

string $root Either 'dropbox' or 'sandbox':

Return value

a response object

File

./dropbox.php, line 344

Class

dropbox

Code

public function create_folder($path, $root = 'dropbox') {
  return $this
    ->_response_request('/fileops/create_folder?path=' . rawurlencode($path) . '&root=' . $root);
}