Skip to content

Add Maui FileSystem LayoutRendererΒ #2

@snakefoot

Description

@snakefoot

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions