سؤال

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?

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top