apps/files_external/3rdparty/Dropbox/API.php
/**
     * Creates a new folder
     *
     * This method returns the information from the newly created directory
     *
     * @param string $path
     * @param string $root Use this to override the default root path (sandbox/dropbox)
     * @return stdclass
     */
Creates a new folder

This method returns the information from the newly created directory

@param string $path
@param string $root Use this to override the default root path (sandbox/dropbox)
@return stdclass
Creates a new folder This method returns the information from the newly created directory @param string $path @param string $root Use this to override the default root path ( sandbox / dropbox ) @return stdclass
public function createFolder($path, $root = null) {
        if (is_null($root)) $root = $this->root;
        $path = '/' . ltrim($path,'/');
        $response = $this->oauth->fetch($this->api_url . 'fileops/create_folder', array('path' => $path, 'root' => $root),'POST');
        return json_decode($response['body'],true);
    }
public function createFolder ( $ path , $ root = null ) { if ( is_null ( $ root ) ) $ root = $ this -> root ; $ path = '/' . ltrim ( $ path , '/' ) ; $ response = $ this -> oauth -> fetch ( $ this -> api_url . 'fileops/create_folder' , array ( 'path' => $ path , 'root' => $ root ) , 'POST' ) ; return json_decode ( $ response [ 'body' ] , true ) ; }
Creates a new folder
Creates a new folder
// Making sure the path starts with a /