Update SDWebImageTestCache.m

Co-authored-by: DreamPiggy <lizhuoli1126@126.com>
This commit is contained in:
Tim Johnsen 2024-10-11 20:21:10 -07:00 committed by GitHub
parent dcd0c46b7f
commit 0cde1582d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ static NSString * const SDWebImageTestDiskCacheExtendedAttributeName = @"com.hac
}
// Remove files that are older than the expiration date;
NSDate *accessDate = resourceValues[NSURLAttributeContentAccessDateKey];
NSDate *accessDate = resourceValues[NSURLContentAccessDateKey];
if (expirationDate && [[accessDate laterDate:expirationDate] isEqualToDate:expirationDate]) {
[self.fileManager removeItemAtURL:fileURL error:nil];
}