locked
Libraries require their default folders?!

    General discussion

  • All,

    I've encountered an interesting (reproducible) exception whilst working on my app, which is that if you do this:

    StorageFolder _videoDownloadLocation = await KnownFolders.VideosLibrary.CreateFolderAsync("MyFolder"CreationCollisionOption.OpenIfExists);

    And the user has changed their local VideosLibrary such that the 'Videos' folder in the local profile is not included, then you get an exception. It doesn't matter if the user has defined another default folder for the library or not, the profile 'Videos' folder MUST be part of the library (same applies to Music).

    I have had reports of this being an issue if the user has opted to put their user profile on a non-C partition as well, though I've not been able to verify that myself.

    Is this expected behaviour? What is the reasoning?

    Regards,

    Chris

    Wednesday, June 25, 2014 10:34 AM