Commit a603b2ec authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

App Delegate: clean caches on launch

parent 333159c6
......@@ -59,6 +59,13 @@
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
/* clean caches on launch (since those are used for wifi upload only) */
NSArray *searchPaths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
NSString* uploadDirPath = searchPaths[0];
NSFileManager *fileManager = [NSFileManager defaultManager];
if ([fileManager fileExistsAtPath:uploadDirPath])
[fileManager removeItemAtPath:uploadDirPath error:nil];
// Init the HTTP Server
self.uploadController = [[VLCHTTPUploaderController alloc] init];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment