Guest User

Untitled

a guest
Jan 16th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. NSString *unzipFolder = [[CommonFunctions getCachePath]stringByAppendingPathComponent:@"temp"];
  2.  
  3. [[NSFileManager defaultManager] removeItemAtPath:unzipFolder error:&error];
  4.  
  5. if([[NSFileManager defaultManager] fileExistsAtPath:unzipFolder])
  6. {
  7. NSError *error;
  8. [[NSFileManager defaultManager] removeItemAtPath:unzipFolder error:&error];
  9. NSLog@"Error : %@",[error description]);
  10. }
  11. else
  12. {
  13. NSLog@"File Exists Not Exists");
  14. }
Add Comment
Please, Sign In to add comment