Deletes a file or folder.
public fileopsDelete ( string $path, string[optional] $locale = null, bool[optional] $sandbox = false ) : array | ||
$path | string | The path to the file or folder to be deleted. |
$locale | string[optional] | |
$sandbox | bool[optional] | |
리턴 | array |
/** * 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'); }