Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dropbox Integration with iOS

Tags:

ios

dropbox

Does Dropbox API for iOS provides the functionality for renaming the folder / files in the Dropbox. Also does it supports functionality for deleting the folder / files from iOS?

Thanks in advance

like image 753
sree_iphonedev Avatar asked Mar 28 '26 19:03

sree_iphonedev


2 Answers

Yes. Look at the Dropbox documentation for iOS here.

Quick example:

DBRestClient *dbClient = [[DBRestClient alloc] initWithSession:[DBSession sharedSession]];
[dbClient moveFrom:fromPath toPath:toPath];  // Rename
[dbClient deletePath:path];                  // Delete
like image 86
bbarnhart Avatar answered Mar 30 '26 11:03

bbarnhart


You can't rename a file or folder(up to v1.2.2). to do this you can follow below steps.

rename a file, create a new file with new name and delete old file.

rename a folder, create a new folder, move the contents into this folder from your old folder, and delete the old folder. (make sure all the files are moved before delete).

thanx.

like image 42
damithH Avatar answered Mar 30 '26 11:03

damithH



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!