Commit 65b18b1b authored by Gleb Pinigin's avatar Gleb Pinigin

bugfix: correctly exclude files from iCloud backup

parent 2d70171f
......@@ -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];
}
}
......
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