I have a remote directory with several subdirectories and files in them in Dropbox.
remote side:
-Mobile Profiles *(root)*
-- Custom Profiles
Uploading files and directories / and subdirectories to files is not a problem. I have a brain fart when it comes to getting the subdirectories and their contents from Dropbox to the device.
put
-(void)backupCustomProfiles {
for ( NSString *file in [[NSFileManager defaultManager] contentsOfDirectoryAtPath:MP_CUSTOM error:&error] ) {
[self.restClient uploadFile:file toPath:@"/Mobile Profiles/Custom Profiles/" fromPath:EasyStrings(MP_CUSTOM,file)];
}
}
receive
-(void)restoreCustomProfiles {
for ( ) {
}
}
I am not sure how to go through subdirectories on the remote side.
source
share