iCloudDocumentSync
iCloudDocumentSync copied to clipboard
New files fail to save, but existing files are updated
I am using the saveAndCloseDocumentWithName:withContent:completion:
method to create a new file, but I get an error. However the next time I open the app, after it automatically uploads all files to iCloud, the same method works just fine to overwrite an existing file. Any ideas?
That is very strange. I will take a look into the issue and let you know when I find out more. Which release / commit are you on?
The master branch from what I remember
On Sat, Apr 26, 2014 at 10:56 PM, Sam Spencer [email protected]:
That is very strange. I will take a look into the issue and let you know when I find out more. Which release / commit are you on?
— Reply to this email directly or view it on GitHubhttps://github.com/iRareMedia/iCloudDocumentSync/issues/42#issuecomment-41479002 .
Cristian-Leonard Miehs +40748133114
Black Bunny Studio SRL http://www.blackbunnystudio.com/
I still have this issue, and have some new info for you: The issue appears in the saveAndCloseDocumentWithName: withContent:completion: method I am trying to save files that should be added to a subfolder (ie: /Documents/My Folder/My File.txt) The error happens ONLY for new files ([fileManager fileExistsAtPath:[fileURL path]]), but if the file already exists at that path, the save is successful. I usually get the file to that path, after restarting the app and uploading all oflline files
I figured I should create the folder before creating a file, but I don't know how to create the folder.
As a last resort, I will 1st save the file locally than upload the entire folder, but I'd rather avoid that