Create the "Docsets" directory if it not exists
This commit is contained in:
parent
c6be74ac5b
commit
99b0defcf7
|
@ -71,6 +71,9 @@ namespace WinAlfred.Plugin.Doc
|
||||||
};
|
};
|
||||||
|
|
||||||
docsetBasePath = context.PluginMetadata.PluginDirecotry + @"Docset";
|
docsetBasePath = context.PluginMetadata.PluginDirecotry + @"Docset";
|
||||||
|
if (!Directory.Exists(docsetBasePath))
|
||||||
|
Directory.CreateDirectory(docsetBasePath);
|
||||||
|
|
||||||
foreach (string path in Directory.GetDirectories(docsetBasePath))
|
foreach (string path in Directory.GetDirectories(docsetBasePath))
|
||||||
{
|
{
|
||||||
string name = path.Substring(path.LastIndexOf('\\') + 1);
|
string name = path.Substring(path.LastIndexOf('\\') + 1);
|
||||||
|
|
Loading…
Reference in a new issue