From f959357ab28464a0509d4409dd52f7e12cf97b22 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 1 Oct 2017 17:28:42 +0200 Subject: [PATCH] Trying to fix invalid pathspec error --- FrontSocket/FrontendServices.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FrontSocket/FrontendServices.cs b/FrontSocket/FrontendServices.cs index bd126b8d..34590453 100644 --- a/FrontSocket/FrontendServices.cs +++ b/FrontSocket/FrontendServices.cs @@ -212,7 +212,7 @@ namespace Swarmops.Frontend.Socket // Convert works by first calling imagemagick that creates /tmp/magick-* files - int startMagickCount = Directory.GetFiles("/tmp", "/magick-*").Count(); + int startMagickCount = Directory.GetFiles("/tmp", "magick-*").Count(); while (pageCounter < currentFilePageCount) { @@ -234,7 +234,7 @@ namespace Swarmops.Frontend.Socket { // If first page hasn't appeared yet, check for the Magick temp files - int currentMagickCount = Directory.GetFiles("/tmp", "/magick-*").Count(); + int currentMagickCount = Directory.GetFiles("/tmp", "magick-*").Count(); int currentFilePercentage = currentMagickCount*50/pageCounter; if (currentFilePercentage > 50) {