sree_iphonedev
sree_iphonedev

Reputation: 3534

Dropbox Integration with iOS

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

Upvotes: 3

Views: 3558

Answers (2)

damithH
damithH

Reputation: 5178

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.

Upvotes: 2

bbarnhart
bbarnhart

Reputation: 6710

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

Upvotes: 10

Related Questions