Commit 86b91852 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

fix backup protection

parent 361505b6
......@@ -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];
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment