locked
Access folder outside kown folders class RRS feed

  • Question

  • Hi all,

    I have been developing a windows store application for managing a movie collection with the use of TMDB's api. I have come to an issue that has halted the project completely.

    up to this point I have been using a folder location on my C drive with some mock movies for testing, all is working as expected but my movies reside on my network drive (Drobo) which is directly connected to the machine via Ethernet.

    with the simulator I cannot see the public drives but I can see these on my machine, I have internet(client and server), private networks and removable storage enabled in the application manifest.

    in addition to this if attempted to use

    StorageFilefile = awaitStorageFile.GetFileFromPathAsync("Y://)

    but im getting access denied

    How can I move forward from this, is there a recommended way of accessing folders out side of "knownFolders" and how to see and use network locations

    Thank you :)

     

    Friday, April 10, 2015 8:24 AM

Answers

  • Hi KevinDeery,

    Move to Windows Store App forum for a better support.

    Getting access denied is expected, see this for more information: File access and permissions, you do not have permission to access that folder simply by your code without user's permission.

    As far as I know Windows Store App is designed to run in a sandbox model, if the sandbox does not have permission to access these folder, then your app can't. However file picker is a good assistant but need user to pick location instead of programmatically. see this for more information: Quickstart: Accessing files with file pickers

    To access the network location, you can either think about this: Quickstart: Accessing HomeGroup content

    --James


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Tuesday, April 14, 2015 6:48 AM
    Moderator