private async Task<bool> IsFolderExists(string folderName)
{
try
{
StorageFolder file = await ApplicationData.Current.LocalFolder.GetFolderAsync(folderName);
return true;
}
catch (Exception)
{
return false;
}
}The following code snippet checks if the given folder exists or not in the Windows Application Local folder. This code returns 'true' if folder exists and returns 'false' if not.
