I am saving a file to System.Environment.SpecialFolder.Personal
in Xamarin. It appears to succeed, because I can immediately pull data from the file. However, I cannot browse and find this file on my phone. Where exactly is this exclusive Personal
folder?
Environment. SpecialFolder. Personal type maps to the path /data/data/[your.package.name]/files . This is a private directory to your application so you won't be able to see these files using a file browser unless it has root privileges.
Special folders are set by default by the system, or explicitly by the user, when installing a version of Windows. The Environment. GetFolderPath method returns the locations associated with this enumeration.
Environment. SpecialFolder. ApplicationData is the most common one. This folder holds per-user, non-temporary application-specific data, other than user documents. A common example would be a settings or configuration file.
On Microsoft Windows, a special folder is a folder that is presented to the user through an interface as an abstract concept instead of an absolute folder path. (The synonymous term shell folder is sometimes used instead.)
The System.Environment.SpecialFolder.Personal
type maps to the path /data/data/[your.package.name]/files
. This is a private directory to your application so you won't be able to see these files using a file browser unless it has root privileges.
You can inspect these files through adb through the following commands:
adb shell
run-as your.package.name
cd files
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With