controller: Recursively remove existing fetcher target
This commit is contained in:
parent
a6c57e51b7
commit
3813e250de
|
@ -573,7 +573,7 @@ namespace SparkleShare {
|
||||||
info.TargetDirectory = Path.Combine (Config.TmpPath, canonical_name);
|
info.TargetDirectory = Path.Combine (Config.TmpPath, canonical_name);
|
||||||
|
|
||||||
if (Directory.Exists (info.TargetDirectory))
|
if (Directory.Exists (info.TargetDirectory))
|
||||||
Directory.Delete (info.TargetDirectory);
|
Directory.Delete (info.TargetDirectory, true);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.fetcher = (BaseFetcher) Activator.CreateInstance (
|
this.fetcher = (BaseFetcher) Activator.CreateInstance (
|
||||||
|
|
Loading…
Reference in a new issue