Repository navigation
Are the folders in AppDataPaths always guaranteed to exist, and also why is there no equivalent of ApplicationData.Current.TemporaryFolder? #6504
|
I'm using a packaged app. I'm wondering if the paths given by |
Replies: 1 comment 13 replies
|
For the path-string API, I would still create the directory before first use: Directory.CreateDirectory(appDataPaths.LocalAppData);
For a closer WinRT-style replacement, check the newer Windows App SDK storage API rather than only |
For the path-string API, I would still create the directory before first use:
Directory.CreateDirectoryis idempotent, so it is a cheap way to make the write path robust even if a specific folder has not been materialized yet.For a closer WinRT-style replacement, check the newer Windows App SDK storage API rather than only
AppDataPaths.Microsoft.Windows.Storage.ApplicationData.GetDefault()exposes folder/path properties including local and temporary app data in current SDKs. If your target Windows App SDK version hasTemporaryFolder/TemporaryPath, that is the equivalent you are looking for.