In Windows Store App's(c#) I check if file exist in nested folder in isolated storage with using this method:
public static async Task<bool> CheckIsFile(string fileName, StorageFolder folder)
{
if (string.IsNullOrEmpty(fileName)) return false;
try
{
await folder.GetFileAsync(fileName);
return true; //exist
}
catch
{
return false; // not exist
}
}
But may be exist another (low performance) way without creating exception ?