Skip to content

Commit

Permalink
Fix issue #413 Removing blog directory makes blogs unremovable
Browse files Browse the repository at this point in the history
- If the option "delete blog index only" wasn't selected and the user already removed the blog's folder manually, an error happened on "remove blog".
  • Loading branch information
thomas694 committed Dec 28, 2022
1 parent c4ece61 commit 068c5f1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,8 @@ private void RemoveBlog(IEnumerable<IBlog> blogs, bool doArchive)
try
{
string blogPath = blog.DownloadLocation();
Directory.Delete(blogPath, true);
if (Directory.Exists(blogPath))
Directory.Delete(blogPath, true);
}
catch (Exception ex)
{
Expand Down

0 comments on commit 068c5f1

Please sign in to comment.