From bad1f93bd092296d56cc8a7a15e8aa013f44f615 Mon Sep 17 00:00:00 2001 From: Gerard Walace Date: Mon, 25 Mar 2013 00:40:03 +0100 Subject: [PATCH] - Mono/.Net diff : A little change in the code in order to work with a .net Build. It seems (not tried) that the Mono Directory.GetFiles return an array of file_names. A .net compiler return an array of file_paths. --- SparkleShare/SparkleControllerBase.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SparkleShare/SparkleControllerBase.cs b/SparkleShare/SparkleControllerBase.cs index e62697e9..1625ac34 100644 --- a/SparkleShare/SparkleControllerBase.cs +++ b/SparkleShare/SparkleControllerBase.cs @@ -187,7 +187,8 @@ namespace SparkleShare { string keys_path = Path.GetDirectoryName (this.config.FullPath); string key_file_path = ""; - foreach (string file_name in Directory.GetFiles (keys_path)) { + foreach (string file_path in Directory.GetFiles (keys_path)) { + string file_name = Path.GetFileName(file_path); if (file_name.EndsWith (".key")) { key_file_path = Path.Combine (keys_path, file_name);