From 47ef7661d8e38712a8c8e84e406ce01cbd4b1dc5 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Thu, 20 Dec 2018 17:08:32 +0900 Subject: [PATCH] Fix search for macaroon --- BTCPayServer/Controllers/Macaroons.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Controllers/Macaroons.cs b/BTCPayServer/Controllers/Macaroons.cs index 0a87fd6e6..08eb369e8 100644 --- a/BTCPayServer/Controllers/Macaroons.cs +++ b/BTCPayServer/Controllers/Macaroons.cs @@ -26,7 +26,7 @@ namespace BTCPayServer.Controllers Macaroons macaroons = new Macaroons(); if (!Directory.Exists(directoryPath)) return macaroons; - foreach(var file in Directory.GetFiles("*.macaroon")) + foreach(var file in Directory.GetFiles(directoryPath, "*.macaroon")) { try {