>Why guys from Microsoft change all upside down after each .net edition? I have tried to do few simples things in new 'metro style' xaml but nothing is simple today. For example I needed to scan a hard disk drive to get list of files. This is very simple task isn't it?
But please tell me why this pretty simple chunk of code doesn't work
using Windows.Storage;
....
async Task AllFilesIwantToGet()
{
StorageFolder sf =
await StorageFolder.GetFolderFromPathAsync(@"d:\mydocs");
IReadOnlyList<IStorageItem> list= await sf.GetItemsAsync();
It looks like GetFolderFromPathAsync() never stops and variable sf is null all the time. I was trying to find solution on MSDN but there is nothing that could help.
I thought it's a permission issue but when I use the following code
var sf = await StorageFolder.GetFolderFromPathAsync(KnownFolders.MusicLibrary.Path);
it never ends up too allthough I have added capabilities to MusicLirary.
Sorry for this but after 10 years of programming I feel still like a newbie. This is annoying. Needless to say that Microsoft shots his own foot again.