Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a StorageFile from path Win8.1

I want to manually create a StorageFile from a path, but there is no constructor for a StorageFile.

Is there a simple way to do a thing like this?

StorageFile f = new StorageFile("C:\song.mp3");
like image 560
Nicolas HENAUX Avatar asked Sep 15 '25 06:09

Nicolas HENAUX


1 Answers

StorageFile file = await StorageFile.GetFileFromPathAsync(item.Path);
like image 115
Nicolas HENAUX Avatar answered Sep 17 '25 20:09

Nicolas HENAUX