Problem loading folder with Dropbox Api

I am using Dropbox api and trying to download a folder, but it does not work. I can upload any type of file, but not the whole folder. Here is my code that I used to download the file

NSLog(@"called");

    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

    NSString *file = [NSString stringWithFormat:@"/%@",[metaArray objectAtIndex:indexPath.row]]; 

    //NSString *file = @"/Photos";
    NSString *path = [NSString stringWithFormat:@"%@/Downloaded Data/%@", [paths objectAtIndex:0],file];

    //NSString *str = [NSString stringWithFormat:@"%@/Downloaded Data",path];

    [self.restClient loadFile:file intoPath:path];

    NSLog(@"Downloaded");

please, help

+3
source share
2 answers

Download the directory metadata, then upload the files that it refers to, see post for code.

0
source

I faced the same problem as you,

and the error log I received is that the "local folder does not exist" even if I already create the folder myself

I think "DBRestClient" is just a "single file" loader?

"NOT" folder synchronization object

sync API

API ....

https://www.dropbox.com/developers/sync/start/ios


... "DBRestClient" ....

API- ...

[_restClient loadMetadata:@"/"];

!

0

All Articles