Added comment why -[NSFileManager fileExistsAtPath:] is not used

This commit is contained in:
Zorg committed 2015-04-19 19:23:00 -04:00
1 parent 08aed29870
commit da9e48cf29
1 file changed
+1
+1
View File
@@ -141,6 +141,7 @@ int applyBinaryDelta(NSString *source, NSString *destination, NSString *patchFil
NSString *sourceFilePath = [source stringByAppendingPathComponent:path];
NSString *destinationFilePath = [destination stringByAppendingPathComponent:path];
// Don't use -[NSFileManager fileExistsAtPath:] because it will follow symbolic links
BOOL fileExisted = verbose && [fileManager attributesOfItemAtPath:destinationFilePath error:nil];
BOOL removedFile = NO;