فهرست منبع

fix backup protection

Felix Paul Kühne 12 سال پیش
والد
کامیت
86b918529f
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      AspenProject/VLCAppDelegate.m

+ 1 - 1
AspenProject/VLCAppDelegate.m

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