mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix a bug when creating Config directory
This commit is contained in:
parent
fc4778159c
commit
2554165963
1 changed files with 2 additions and 5 deletions
|
|
@ -41,11 +41,8 @@ namespace Wox.Infrastructure.Storage
|
|||
string configPath = Path.Combine(configFolder, ConfigName + fileSuffix);
|
||||
if (!File.Exists(configPath))
|
||||
{
|
||||
FileInfo fileInfo = new FileInfo(configFolder);
|
||||
if (!fileInfo.Directory.Exists)
|
||||
{
|
||||
fileInfo.Directory.Create();
|
||||
}
|
||||
if (!Directory.Exists(configFolder))
|
||||
Directory.CreateDirectory(configFolder);
|
||||
File.Create(configPath).Close();
|
||||
}
|
||||
string json = File.ReadAllText(configPath);
|
||||
|
|
|
|||
Loading…
Reference in a new issue