From dcd0c46b7f770623df7082185bc07ad4cbbf2409 Mon Sep 17 00:00:00 2001 From: Tim Johnsen Date: Fri, 11 Oct 2024 20:21:03 -0700 Subject: [PATCH] Update SDWebImageTestCache.m Co-authored-by: DreamPiggy --- Tests/Tests/SDWebImageTestCache.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Tests/SDWebImageTestCache.m b/Tests/Tests/SDWebImageTestCache.m index 2f43539f..b01ce1e9 100644 --- a/Tests/Tests/SDWebImageTestCache.m +++ b/Tests/Tests/SDWebImageTestCache.m @@ -91,7 +91,7 @@ static NSString * const SDWebImageTestDiskCacheExtendedAttributeName = @"com.hac - (void)removeExpiredData { NSDate *expirationDate = [NSDate dateWithTimeIntervalSinceNow:-self.config.maxDiskAge]; NSURL *diskCacheURL = [NSURL fileURLWithPath:self.cachePath isDirectory:YES]; - NSArray *resourceKeys = @[NSURLIsDirectoryKey, NSURLAttributeContentAccessDateKey]; + NSArray *resourceKeys = @[NSURLIsDirectoryKey, NSURLContentAccessDateKey]; NSDirectoryEnumerator *fileEnumerator = [self.fileManager enumeratorAtURL:diskCacheURL includingPropertiesForKeys:resourceKeys options:NSDirectoryEnumerationSkipsHiddenFiles