From 35d2082fa2daa41fc0da8dfad9b930be7c4c5b27 Mon Sep 17 00:00:00 2001 From: Sebastian Popp <2521500+sebastianpopp@users.noreply.github.com> Date: Sat, 21 May 2022 13:31:51 +0200 Subject: [PATCH] Fix permissions issue (#163) --- src/GlideConversion.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GlideConversion.php b/src/GlideConversion.php index 56ddf32e..7df5d6a3 100644 --- a/src/GlideConversion.php +++ b/src/GlideConversion.php @@ -128,7 +128,7 @@ public function save(string $outputFile): void unlink($this->conversionResult); - if ($this->directoryIsEmpty($conversionResultDirectory) && $conversionResultDirectory !== sys_get_temp_dir()) { + if ($conversionResultDirectory !== sys_get_temp_dir() && $this->directoryIsEmpty($conversionResultDirectory)) { rmdir($conversionResultDirectory); } }