Skip to content
Browse files

Removed deprecated method call

  • Loading branch information...
1 parent 0761691 commit b24151a4b9ba6c160b39a6663fe7f21abd5cb5bd Adrian Kosmaczewski committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 Externals/AKOImageCache/AKOImageCache.m
View
6 Externals/AKOImageCache/AKOImageCache.m
@@ -121,7 +121,7 @@ - (void)removeAllImages
{
[_memoryCache removeAllObjects];
- NSArray *items = [_fileManager directoryContentsAtPath:_cacheDirectoryName];
+ NSArray *items = [_fileManager contentsOfDirectoryAtPath:_cacheDirectoryName error:nil];
for (NSString *item in items)
{
NSString *path = [_cacheDirectoryName stringByAppendingPathComponent:item];
@@ -138,7 +138,7 @@ - (void)removeAllImagesInMemory
- (void)removeOldImages
{
- NSArray *items = [_fileManager directoryContentsAtPath:_cacheDirectoryName];
+ NSArray *items = [_fileManager contentsOfDirectoryAtPath:_cacheDirectoryName error:nil];
for (NSString *item in items)
{
NSString *path = [_cacheDirectoryName stringByAppendingPathComponent:item];
@@ -170,7 +170,7 @@ - (NSUInteger)countImagesInMemory
- (NSUInteger)countImagesInDisk
{
- NSArray *items = [_fileManager directoryContentsAtPath:_cacheDirectoryName];
+ NSArray *items = [_fileManager contentsOfDirectoryAtPath:_cacheDirectoryName error:nil];
return [items count];
}

0 comments on commit b24151a

Please sign in to comment.
Something went wrong with that request. Please try again.