controller: catch all exceptions related to calculating folder size
This commit is contained in:
parent
b9cf8f9b2b
commit
4726526afd
|
@ -686,7 +686,7 @@ namespace SparkleShare {
|
|||
foreach (DirectoryInfo directory in parent.GetDirectories())
|
||||
size += CalculateFolderSize (directory);
|
||||
|
||||
} catch (DirectoryNotFoundException) {
|
||||
} catch (Exception) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue