Commit 9f356454 authored by Jeremy Bokobza's avatar Jeremy Bokobza

Create Breeze folder is it doesn't exist

parent 1a1fcee0
......@@ -583,6 +583,9 @@ namespace Breeze.Wallet
// TODO look in user-chosen folder as well.
// maybe the api can maintain a list of wallet paths it knows about
var defaultFolderPath = GetDefaultWalletFolderPath();
// create the directory if it doesn't exist
Directory.CreateDirectory(defaultFolderPath);
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