Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Small tweak.

  • Loading branch information...
commit edfa2596c8ca0e3aac400a1557d5b5f2145aaa58 1 parent 7b004ba
Pavel Kunc authored
Showing with 2 additions and 7 deletions.
  1. +2 −7 PKToolbox/Sources/Foundation/NSFileManager+PKCopyDirectory.m
9 PKToolbox/Sources/Foundation/NSFileManager+PKCopyDirectory.m
View
@@ -24,15 +24,10 @@ - (BOOL)pk_copyDirectoryAtPath:(NSString *)srcDirectoryPath
// Outer loop is neccessary to release srcFile because enumerator somehow
// release all after ALL iterations. So we force release using inner pool.
- BOOL enumeratorFinished = NO;
- while(!enumeratorFinished) {
+ while(YES) {
@autoreleasepool {
NSString *srcFile = [enumerator nextObject];
- if (srcFile == nil) {
- enumeratorFinished = YES;
- break;
- }
-
+ if (srcFile == nil) break;
didCopy = YES;
NSString *srcFilePath = [srcDirectoryPath stringByAppendingPathComponent:srcFile];
Please sign in to comment.
Something went wrong with that request. Please try again.