瀏覽代碼

VLCBoxController: Check for potential path before download

Soomin Lee 5 年之前
父節點
當前提交
f911e8e531
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)])