How we can rename a folder or file in the IOS using objective c. I am using apiv2.
Thanks in advance.!!1
The move method is an "RPC-style request", so you would use it like the samples in the documentation under "RPC-style request".
Specifically, it would look like:
[[client.filesRoutes move:@/original_path toPath:@/new_path] setResponseBlock:^(DBFILESMetadata *result, DBFILESRelocationError *routeError, DBRequestError *requestError) { if (result) { NSLog(@%@\n", result); } else { NSLog(@%@\n", routeError); NSLog(@%@\n", requestError); }}];
- (DBRpcTask<DBFILESMetadata *, DBFILESRelocationError *> *_Nonnull) move:(NSString *_Nonnull)fromPath toPath:(NSString *_Nonnull)toPath{ }
can you pelase suggest how to use this method. I tried a lot.