From b8154415c902d7ea549dede14a1249b5d5d39ddb Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Thu, 23 Jun 2011 01:29:12 +0100 Subject: [PATCH] controller: catch all exceptions related to calculating folder size --- SparkleShare/SparkleController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SparkleShare/SparkleController.cs b/SparkleShare/SparkleController.cs index 90174b37..2011b54c 100644 --- a/SparkleShare/SparkleController.cs +++ b/SparkleShare/SparkleController.cs @@ -686,7 +686,7 @@ namespace SparkleShare { foreach (DirectoryInfo directory in parent.GetDirectories()) size += CalculateFolderSize (directory); - } catch (DirectoryNotFoundException) { + } catch (Exception) { return 0; }