Selaa lähdekoodia

bugfix: correctly exclude files from iCloud backup

Gleb Pinigin 12 vuotta sitten
vanhempi
commit
65b18b1b8e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      AspenProject/VLCAppDelegate.m

+ 1 - 1
AspenProject/VLCAppDelegate.m

@@ -221,7 +221,7 @@
             [filePaths addObject:[directoryPath stringByAppendingPathComponent:fileName]];
 
             /* exclude media files from backup (QA1719) */
-            fileURL = [NSURL URLWithString:[NSString stringWithFormat:@"file://%@/%@", directoryPath, fileName]];
+            fileURL = [NSURL fileURLWithPath:[directoryPath stringByAppendingPathComponent:fileName]];
             [fileURL setResourceValue:@YES forKey:NSURLIsExcludedFromBackupKey error:nil];
         }
     }