- (BOOL)replaceFileAtURL:(NSURL *)URL contents:(NSData *)data
error:(NSError **)error - Replaces the content of the file at the given URL
with the given content.
Parameters
- (NSURL *)URL
- String specifying the URL.
- (NSData *)data
- The contents with which to replace the file.
- (NSError **)error
- Error object
Returns
(BOOL) - true if the file/folder was replaced successfully.