Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed deprecated method call

  • Loading branch information...
commit b24151a4b9ba6c160b39a6663fe7f21abd5cb5bd 1 parent 0761691
Adrian Kosmaczewski authored
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];
}
Please sign in to comment.
Something went wrong with that request. Please try again.