get all files in specific subdirectory of knownfolder RRS feed

  • Question

  • all samples shows how to get list of files in Knownfolders.

    How to set a subdirectory eg PictureLibrary myHoliday

    Thursday, June 14, 2012 7:00 AM


  • This will get you all the files in a specific subfolder:

                StorageFolder subfolder = await KnownFolders.PicturesLibrary.GetFolderAsync("Subfolder");
                IReadOnlyList<StorageFile> files = await subfolder.GetFilesAsync();
                foreach (StorageFile file in files)
                    // Do something with file
                    string path = file.Path;


    Alejandro Campos Magencio - Microsoft Escalation Engineer - Forum Moderator
     If my reply answers your question, please mark this post as answered.

    Thursday, June 14, 2012 9:18 AM