瀏覽代碼

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];
         }
     }