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
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With