Create the "Docsets" directory if it not exists

This commit is contained in:
Yeechan Lu 2014-01-27 00:02:38 +08:00
parent c6be74ac5b
commit 99b0defcf7

View file

@ -71,6 +71,9 @@ namespace WinAlfred.Plugin.Doc
};
docsetBasePath = context.PluginMetadata.PluginDirecotry + @"Docset";
if (!Directory.Exists(docsetBasePath))
Directory.CreateDirectory(docsetBasePath);
foreach (string path in Directory.GetDirectories(docsetBasePath))
{
string name = path.Substring(path.LastIndexOf('\\') + 1);