Closed bhellema closed 7 years ago
What does the URL look like?
@bhellema check out the latest code from master and let me know if it fixes your issue.
@imhotep can you give the latest commit a once over?
@macdonst I would also check for the type just to be safe and move it to line 402 before this if statement.
NSString* type = [sTask.command argumentAtIndex:2 withDefault:@"replace"];
if([fileManager fileExistsAtPath:[dstURL path]] && replace == YES) {
NSLog(@"%@ already exists. Deleting it since type is set to `replace`", [dstURL path]);
[fileManager removeItemAtURL:dstURL error:NULL];
}
I would also remove this code as it would be a duplicate.
@macdonst the latest src looks like it has resolved issue.
👍
According to the options.type documentation the default behaviour is to delete the old content and cache the new content. On iOS this does not seem to be the case.
Using the following call:
results in:
From the logs: