- 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:
parent
ca68deb64e
commit
bad1f93bd0
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue