Replies: 2 comments 4 replies
-
Yes, it looks like Avalonia's API was based somewhat on UWP/WinUI -- which was necessary to work across all platforms in an abstract way. However, WinUI has a lot more properties even on the StorageFolder class: https://learn.microsoft.com/en-us/uwp/api/windows.storage.storagefolder.path?view=winrt-22621 including
|
Beta Was this translation helpful? Give feedback.
-
Creation of subfolders and files can be added to the API. As folder pickers gives full temporary access to the folder content on all platforms. On some platforms you might need to sandbox this folder if you want to read it later (browser, ios and android depending on the version). |
Beta Was this translation helpful? Give feedback.
-
I'm working on converting an app written using Avalonia 10 to using the new IStorageProvider family for handling files. The order of operations that the app is following currently is the following.
In trying to convert this workflow to use IStorageProvider, I ran into issues with steps 2 through 4. I don't see a way to create a sub-folder or file inside a folder using an IStorageFolder object directly and the full path is abstracted away, so I can't pass it to the File, Path, or Directory static methods to create folders and files or reference it in the Window title (not critical, but still a downside).
Am I missing an intended way to get this functionality or is this still to be implemented in v11?
Beta Was this translation helpful? Give feedback.
All reactions