You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Application data should be stored in the application support directory reachable via FileManager.SearchPathDirectory.applicationSupportDirectory.
Current Behavior
Application data is being saved to either the user's document directory or the caches directory. The document's directory is less than ideal as it clutters up user space. The caches directory is also problematic as it can be purged by the system.
Possible Solution
Use the application support directory (FileManager.SearchPathDirectory.applicationSupportDirectory). On macOS, it's the ~/Library/Application Support directory. On iOS and other platforms it's app specific, but serves the same purpose.
Furthermore, you can mark a directory/file to be excluded from iCloud backup by setting attributes at the point of creation. More info here: Mark Nonpurgeable Data as Excludable
I've created a PR you can reference
The text was updated successfully, but these errors were encountered:
Expected Behavior
Application data should be stored in the application support directory reachable via
FileManager.SearchPathDirectory.applicationSupportDirectory
.Current Behavior
Application data is being saved to either the user's document directory or the caches directory. The document's directory is less than ideal as it clutters up user space. The caches directory is also problematic as it can be purged by the system.
Possible Solution
Use the application support directory (
FileManager.SearchPathDirectory.applicationSupportDirectory
). On macOS, it's the~/Library/Application Support
directory. On iOS and other platforms it's app specific, but serves the same purpose.Furthermore, you can mark a directory/file to be excluded from iCloud backup by setting attributes at the point of creation. More info here: Mark Nonpurgeable Data as Excludable
I've created a PR you can reference
The text was updated successfully, but these errors were encountered: