controller: treat treat underscores in project names as spaces

This commit is contained in:
Hylke Bons 2012-11-04 13:13:50 +00:00
parent 34156077d9
commit c83f205167

View file

@ -604,7 +604,9 @@ namespace SparkleShare {
this.fetcher.Complete ();
string canonical_name = Path.GetFileNameWithoutExtension (this.fetcher.RemoteUrl.AbsolutePath);
canonical_name = canonical_name.Replace ("-crypto", "");
canonical_name = canonical_name.Replace ("_", " ");
bool target_folder_exists = Directory.Exists (
Path.Combine (this.config.FoldersPath, canonical_name));