mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-10 22:45:59 +05:45
This moves iOS and macOS user data from `NSDocumentDirectory` to `NSApplicationSupportDirectory`, adding a pre-open migration step that: * Moves old data into the new location * Cleans up any resulting empty directories in the old Documents folder * Stops before removing the Documents folder itself (see tests) Note that other platforms don't need a migration: * tvOS was already storing documents in `NSCachesDirectory` * Linux, Windows, and other UNIX haven't been publicly released or aren't changing. See individual commits for details. Most notably this adds some additional filesystem manipulation routines to our (sadly) growing library. Fixes #843.