Explorar el Código

Use a more clever file upload caching path

Felix Paul Kühne hace 11 años
padre
commit
b4e813840e
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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;