This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()) |