Update SDWebImageTestCache.m
Co-authored-by: DreamPiggy <lizhuoli1126@126.com>
This commit is contained in:
parent
dcd0c46b7f
commit
0cde1582d8
|
@ -108,7 +108,7 @@ static NSString * const SDWebImageTestDiskCacheExtendedAttributeName = @"com.hac
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove files that are older than the expiration date;
|
// Remove files that are older than the expiration date;
|
||||||
NSDate *accessDate = resourceValues[NSURLAttributeContentAccessDateKey];
|
NSDate *accessDate = resourceValues[NSURLContentAccessDateKey];
|
||||||
if (expirationDate && [[accessDate laterDate:expirationDate] isEqualToDate:expirationDate]) {
|
if (expirationDate && [[accessDate laterDate:expirationDate] isEqualToDate:expirationDate]) {
|
||||||
[self.fileManager removeItemAtURL:fileURL error:nil];
|
[self.fileManager removeItemAtURL:fileURL error:nil];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue