Question

I would like to exclude a whole hierarchy of files and folders from the backup using

NSFileManager.SetSkipBackupAttribute()

The documentation is about "files". Can I also pass a path and all files and folders under that path - also those ones added afterwards - won't be backed up either or do I have to set the attribute on every individual file?

Was it helpful?

Solution

Like stated in the documentation the underlying API used (except for iOS 5.0.1) is NSUrlIsExcludedFromBackupKey and according to this answer it is recursive.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top