Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- 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.
  • Loading branch information...
commit bad1f93bd092296d56cc8a7a15e8aa013f44f615 1 parent ca68deb
@GerardWalace GerardWalace authored committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  SparkleShare/SparkleControllerBase.cs
View
3  SparkleShare/SparkleControllerBase.cs
@@ -187,7 +187,8 @@ public virtual void Initialize ()
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);
Please sign in to comment.
Something went wrong with that request. Please try again.