Reputation: 1686
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");
Upvotes: 4
Views: 9413
Reputation: 1686
StorageFile file = await StorageFile.GetFileFromPathAsync(item.Path);
Upvotes: 12