-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New Location for the LevelDB directory #843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This location is essentially based on where we did it in the RTDB and that location was chosen somewhat arbitrarily. This is user data, but agreed that it's not user data that's useful as individual files. Regardless of our philosophical position on it the end-user experience with |
We provide custom directory browsing within our app. Until the fix is rolled out, I will have to manually hide this directory to the user. |
+1 @mathieugarcia can you share how you are hiding the directory? We tried setting |
It would be great if this issue could be addressed. Our users make use of the Files app to transfer a lot of files in/out of the device/app. This folder causes confusion to some people and is at risk of being deleted by the user. |
Definitely agree here. User's shouldn't be able to access this in the |
@wilhuff is on the roadmap? |
For sure, though the fix is tricky when accounting for migrating existing data because we're not structured to handle that (yet). |
@mathieugarcia how can I hide Firebase directory please? |
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.
This will go out with the next release! |
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.
Describe the problem
Firestore is currently storing the LevelDB files under the
Documents/
directory on iOS. TheDocuments/
directory is visible to the end user (i.e in the Files app) and this could cause issues if an user inadvertently delete or rename a file belonging to Firestore/LevelDB.Steps to reproduce:
Proposed Change:
I propose we change the location for the LevelDB directory from
Documents/
toLibrary/Application support
. This location is more inline with the guidelines defined by Apple hereRelevant bits:
The text was updated successfully, but these errors were encountered: