Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top