Does updating an iOS app delete custom subdirectories located in the Library directory ?

Hi,


as mentionned here, "The contents of the

Library
directory (with the exception of the
Caches
subdirectory) are backed up by iTunes and iCloud.".


But I'm asking if the subdirectories are kept after users made an update of their app, is there someone that can confirm or deny this point.


A huge thanks in advance.


Pierre-Yves

Replies

During an update, the new app is written out first. User data files that need to persist are then copied from old /Documents to new /Documents, and then the old app is deleted. Everything else in the app structure is new.


This line from that doc on Library/ illustrates: Your app should not use these directories for user data files. So, yes, old Library/ on the device is deleted during an update.


Whether or not the new structure mimics the old at that point is basically up to the dev, based on.