public function fileopsDelete($path, $locale = null, $sandbox = false) { // build url $url = '1/fileops/delete'; // build parameters $parameters['path'] = trim((string) $path, '/'); $parameters['root'] = $sandbox ? 'sandbox' : 'dropbox'; if ($locale !== null) { $parameters['locale'] = (string) $locale; } // make the call return $this->doCall($url, $parameters, 'POST'); }
/** * Tests Dropbox->fileopsMove() */ public function testFileopsMove() { $this->dropbox->fileopsCreateFolder(BASE_PATH . 'will_be_moved'); $response = $this->dropbox->fileopsMove(BASE_PATH . 'will_be_moved', BASE_PATH . 'moved'); $this->isDir($response); $this->dropbox->fileopsDelete(BASE_PATH . 'moved'); }