Explorar o código

VLCBoxController: Check for potential path before download

Soomin Lee %!s(int64=5) %!d(string=hai) anos
pai
achega
f911e8e531
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Sources/VLCBoxController.m

+ 1 - 1
Sources/VLCBoxController.m

@@ -194,7 +194,7 @@
     NSArray *searchPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
     NSString *filePath = [searchPaths[0] stringByAppendingFormat:@"/%@", file.name];
 
-    [self loadFile:file intoPath:filePath];
+    [self loadFile:file intoPath:[self createPotentialPathFrom:filePath]];
 
     dispatch_async(dispatch_get_main_queue(), ^{
         if ([self.delegate respondsToSelector:@selector(operationWithProgressInformationStarted)])