浏览代码

Use a more clever file upload caching path

Felix Paul Kühne 11 年之前
父节点
当前提交
b4e813840e
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Sources/VLCAppDelegate.m
  2. 1 1
      Sources/VLCHTTPConnection.m

+ 1 - 1
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];

+ 1 - 1
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;