This object c code is used to detect whether the contents of the two specified paths are exactly the same
Copy the codeThe code is as follows:
if ([fileManager contentsEqualAtPath:@"FilePath1" andPath:@" FilePath2"]) {
NSLog(@"Same content");
}
The above is the entire content of this article, I hope you like it.