Commit 3dc33b09 authored by Jeremy Bokobza's avatar Jeremy Bokobza Committed by GitHub

Merge pull request #47 from bokobza/master

Create Breeze folder is it doesn't exist
parents 1a1fcee0 9f356454
...@@ -583,6 +583,9 @@ namespace Breeze.Wallet ...@@ -583,6 +583,9 @@ namespace Breeze.Wallet
// TODO look in user-chosen folder as well. // TODO look in user-chosen folder as well.
// maybe the api can maintain a list of wallet paths it knows about // maybe the api can maintain a list of wallet paths it knows about
var defaultFolderPath = GetDefaultWalletFolderPath(); var defaultFolderPath = GetDefaultWalletFolderPath();
// create the directory if it doesn't exist
Directory.CreateDirectory(defaultFolderPath);
return Directory.EnumerateFiles(defaultFolderPath, "*.json", SearchOption.TopDirectoryOnly); return Directory.EnumerateFiles(defaultFolderPath, "*.json", SearchOption.TopDirectoryOnly);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment