Reputation: 224
Is there any way to retrieve the available disk space from within a WinJS application?
I've found information on creating windows runtime components, and then including those in your application, but it doesn't look like System.IO.DriveInfo is supported.
Supported methods:
http://msdn.microsoft.com/en-us/library/windows/apps/hh454050.aspx
How to create a Windows Runtime Component:
http://msdn.microsoft.com/en-us/library/windows/apps/hh779077.aspx
Upvotes: 0
Views: 171
Reputation: 9609
A WinJS (Windows Store) app runs within a sandbox which does not have access to the entire disk. You one get an API for accessing three different kind of storage where you can save settings, temporary data, or whatever you want.
Take a look at Accessing app data with the Windows Runtime for more info.
Upvotes: 1