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