Can you provide more data? What version of Corona SDK are you using? Are there any error messages in the device’s console log?
Now my understanding is by default everything in system.DocumentsDirectory gets backed up automatically. You need to use the native.setSync() to mark files to not backup.
First you’re saving a value in errStr from native.showAlert(). This won’t do much. Also you’re showing the alert before you get the sync values. Next you can only check one filename at a time. You might want your alert to show the value of errString in your native.showAlert().
But your biggest problem is you can’t check multiple files at once.
Can you provide more data? What version of Corona SDK are you using? Are there any error messages in the device’s console log?
Now my understanding is by default everything in system.DocumentsDirectory gets backed up automatically. You need to use the native.setSync() to mark files to not backup.
First you’re saving a value in errStr from native.showAlert(). This won’t do much. Also you’re showing the alert before you get the sync values. Next you can only check one filename at a time. You might want your alert to show the value of errString in your native.showAlert().
But your biggest problem is you can’t check multiple files at once.
Does anyone know if the setSync function will handle folders as well as files. In the documentation it just says the first argument should be a filename. But I have an images folder that I want to completely exclude from iCloud backups. The folder ‘images’ is previously created in my documents directory, can I do the following … ?
I tried it and the output results were value = true and errStr = nil which is promising, but I wanted to make sure because I guess there’s no real way of testing this until you publish and apple rejects your app.
Does anyone know if the setSync function will handle folders as well as files. In the documentation it just says the first argument should be a filename. But I have an images folder that I want to completely exclude from iCloud backups. The folder ‘images’ is previously created in my documents directory, can I do the following … ?
I tried it and the output results were value = true and errStr = nil which is promising, but I wanted to make sure because I guess there’s no real way of testing this until you publish and apple rejects your app.