Browse Source

do not remove .ico

Marino Faggiana 8 years ago
parent
commit
707d30e693
1 changed files with 5 additions and 8 deletions
  1. 5 8
      iOSClient/Settings/CCSettings.m

+ 5 - 8
iOSClient/Settings/CCSettings.m

@@ -904,14 +904,11 @@
     
     while (file = [enumerator nextObject]) {
         
-        /*
-        if (removeICO == NO) {
-            
-            NSString *ext = [[file pathExtension] lowercaseString];
-            
-            if ([ext isEqualToString:@"ico"] && [file rangeOfString:@"ID_UPLOAD_"].location == NSNotFound) continue;
-        }
-        */
+        NSString *ext = [[file pathExtension] lowercaseString];
+        
+        // Do not remove ICO
+        if ([ext isEqualToString:@"ico"])
+            continue;
         
         [[NSFileManager defaultManager] removeItemAtPath:[NSString stringWithFormat:@"%@/%@", dirIniziale, file] error:nil];
     }