Преглед на файлове

bugfix: correctly exclude files from iCloud backup

Gleb Pinigin преди 12 години
родител
ревизия
65b18b1b8e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      AspenProject/VLCAppDelegate.m

+ 1 - 1
AspenProject/VLCAppDelegate.m

@@ -221,7 +221,7 @@
             [filePaths addObject:[directoryPath stringByAppendingPathComponent:fileName]];
             [filePaths addObject:[directoryPath stringByAppendingPathComponent:fileName]];
 
 
             /* exclude media files from backup (QA1719) */
             /* 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];
             [fileURL setResourceValue:@YES forKey:NSURLIsExcludedFromBackupKey error:nil];
         }
         }
     }
     }