diff --git a/Sources/VLCAppDelegate.m b/Sources/VLCAppDelegate.m index 47a12937f3fb6f6986040b25a57e611a41ec5c02..7b929f7accbda3f5f903ae6205e8d7d1dc60571e 100644 --- a/Sources/VLCAppDelegate.m +++ b/Sources/VLCAppDelegate.m @@ -63,7 +63,7 @@ /* clean caches on launch (since those are used for wifi upload only) */ NSArray *searchPaths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES); - NSString* uploadDirPath = searchPaths[0]; + NSString* uploadDirPath = [searchPaths[0] stringByAppendingPathComponent:@"Upload"]; NSFileManager *fileManager = [NSFileManager defaultManager]; if ([fileManager fileExistsAtPath:uploadDirPath]) [fileManager removeItemAtPath:uploadDirPath error:nil]; diff --git a/Sources/VLCHTTPConnection.m b/Sources/VLCHTTPConnection.m index 2e649ad64a7b1c7157e04d9254192d298b620514..c4c526736d215beb75cdd82940460aa61413becb 100644 --- a/Sources/VLCHTTPConnection.m +++ b/Sources/VLCHTTPConnection.m @@ -141,7 +141,7 @@ // create the path where to store the media temporarily NSArray *searchPaths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES); - NSString* uploadDirPath = searchPaths[0]; + NSString* uploadDirPath = [searchPaths[0] stringByAppendingPathComponent:@"Upload"]; NSFileManager *fileManager = [NSFileManager defaultManager]; BOOL isDir = YES;