Skip to content

Instantly share code, notes, and snippets.

View IOS-FIles
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
activeTripFile = [[NSString alloc] initWithFormat:@"%@/geoCast.dictionary", documentsDirectory];
NSFileManager* fileManager = [NSFileManager defaultManager];
return [fileManager fileExistsAtPath:activeTripFile] && ![self isGeoCastExpired:nil];
NSFileManager* fileManager = [NSFileManager defaultManager];
View Android-Files
File root = Environment.getExternalStorageDirectory();
File dir = new File (root.getAbsolutePath() + "/FlightData");
File file = new File(dir, "FlightData.csv");
file.delete();
dir.delete();
File dir = new File (root.getAbsolutePath() + "/FlightData");
if (!dir.exists())