简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM