Search code examples
c#windows-phone-7onedrive

Get list of files from SkyDrive folder (Windows Phone)


Does anyone know how to get a list of files for a particular SkyDrive folder? Currently I'm using the following snippet to try and get the files for the root SkyDrive folder:

var client = new LiveConnectClient(e.Session);

client.GetCompleted += (obj, arg) =>
     {
      ...
     }

client.GetAsync("me/skydrive");

but all it returns is a Result dictionary that contains a lot of info but no list of filenames!


Solution

  • After getting desperate and asking the question here

    it turns out the to get a list of files from the root skydrive folder you need to use the magic string me/skydrive/files rather than just me or me/skydrive