Skip to content
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

Add Maui FileSystem LayoutRenderer #2

Open
snakefoot opened this issue Sep 3, 2022 · 0 comments
Open

Add Maui FileSystem LayoutRenderer #2

snakefoot opened this issue Sep 3, 2022 · 0 comments

Comments

@snakefoot
Copy link
Contributor

snakefoot commented Sep 3, 2022

Cache directory (Returns the LocalCacheFolder directory)

FileSystem.Current.CacheDirectory;

C:/Users/{MyName}/AppData/Local/Packages/{GUID}_{hash}/LocalCache/

App data directory (Returns the LocalFolder directory that is backed up to the cloud)

FileSystem.Current.AppDataDirectory;

C:/Users/{MyName}/AppData/Local/Packages/{GUID}_{hash}/LocalState/

For NetStandard (and others) then it can just return:

System.AppContext.BaseDirectory

https://docs.microsoft.com/en-us/dotnet/maui/platform-integration/storage/file-system-helpers?tabs=windows

Notice MAUI performs virtualization so when resolving SpecialFolder.LocalApplicationData then it automatically redirect to custom folder:

C:/Users/{MyName}/AppData/Local/Packages/{GUID}_{hash}/LocalCache/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant