controller: catch all exceptions related to calculating folder size

This commit is contained in:
Hylke Bons 2011-06-23 01:29:12 +01:00
parent f7dbd043dd
commit b8154415c9

View file

@ -686,7 +686,7 @@ namespace SparkleShare {
foreach (DirectoryInfo directory in parent.GetDirectories())
size += CalculateFolderSize (directory);
} catch (DirectoryNotFoundException) {
} catch (Exception) {
return 0;
}