- 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.
This commit is contained in:
Gerard Walace 2013-03-25 00:40:03 +01:00 committed by Hylke Bons
parent ed2ca01677
commit cac827e5f0

View file

@ -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);