private Folder GetPodcastFolder(TrackInfo track) { Folder root, target; if (null == mtp_device.PodcastFolder) { root = mtp_device.GetRootFolders().Find(x => x.Name == "Podcasts"); if (null == root) { root = mtp_device.MusicFolder.AddChild("Podcasts"); } } else { root = mtp_device.PodcastFolder; } List <Folder> podcast_albums = root.GetChildren(); target = podcast_albums.Find(x => x.Name == track.DisplayAlbumTitle); if (null == target) { target = root.AddChild(track.DisplayAlbumTitle); } return(target); }