From a8d6e39f74517b45f0ac51703d609ac8ce1e5416 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 1 Oct 2017 17:28:25 +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 8dc66f31..bd126b8d 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.EnumerateFileSystemEntries("/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.EnumerateFileSystemEntries("/tmp/magick-*").Count(); + int currentMagickCount = Directory.GetFiles("/tmp", "/magick-*").Count(); int currentFilePercentage = currentMagickCount*50/pageCounter; if (currentFilePercentage > 50) {