IssueRaiser

Improved StorageFile APIs

# Proposal: Improved file-access APIs for UWP and AppContainer ## Summary Provide an updated version of `StorageFile` that fixes performance and usability issues in the current `Windows.Storage.Storage*` set of types. Support apps that think in terms of file paths & handles instead of StorageFile objects. ## Rationale The current `Windows.Storage.Storage*` types are designed to give programmatic access to regular files, shell namespace items, and other Windows entities backed by files. A single abstraction over all those spaces is interesting but comes with high costs - namely performance and impedence-mismatch with existing application code. Project Reunion should clearly explain why StorageFile is important and - where possible - provide lower-level access to the user's files. * The `BroadFileAccess` capability is "scary" to customers but required even for limited UWP scenarios. * Many libraries and helpers take file paths instead of objects (even instead of handles) * Apps observe serious performance costs related to using StorageFile's built in functionality * Low-level code can access the `...FromApp` API variants, but higher-level code (JS, C#) interop for them is very limited. ## Scope <!-- Please include a list of what the feature should and shouldn't do by filling in the table below. 'Must' implies that the feature should not ship without this capability. 'Should' is something we should push hard for, but is not absolutely required to ship. 'Could' is a nice-

Posted by jonwis on May 18, 2020, 9:10 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

support (Other)

Improved StorageFile APIs

jonwisMay 18, 2020, 9:10 PM

# Proposal: Improved file-access APIs for UWP and AppContainer ## Summary Provide an updated version of `StorageFile` that fixes performance and usability issues in the current `Windows.Storage.Storage*` set of types. Support apps that think in terms of file paths & handles instead of StorageFile objects. ## Rationale The current `Windows.Storage.Storage*` types are designed to give programmatic access to regular files, shell namespace items, and other Windows entities backed by files. A single abstraction over all those spaces is interesting but comes with high costs - namely performance and impedence-mismatch with existing application code. Project Reunion should clearly explain why StorageFile is important and - where possible - provide lower-level access to the user's files. * The `BroadFileAccess` capability is "scary" to customers but required even for limited UWP scenarios. * Many libraries and helpers take file paths instead of objects (even instead of handles) * Apps observe serious performance costs related to using StorageFile's built in functionality * Low-level code can access the `...FromApp` API variants, but higher-level code (JS, C#) interop for them is very limited. ## Scope <!-- Please include a list of what the feature should and shouldn't do by filling in the table below. 'Must' implies that the feature should not ship without this capability. 'Should' is something we should push hard for, but is not absolutely required to ship. 'Could' is a nice-

Comments (0)

No comments yet. Start the discussion.

Comment on this issue