From 6da359bc60f34364f9eebf71f5cd70bbaeaf8bf2 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 7 Aug 2024 12:58:32 +0200 Subject: [PATCH] fix: empty string content should be saved as a file --- bootstrap/helpers/services.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/helpers/services.php b/bootstrap/helpers/services.php index ea743b8cd..1cc2ac36d 100644 --- a/bootstrap/helpers/services.php +++ b/bootstrap/helpers/services.php @@ -78,7 +78,7 @@ function getFilesystemVolumesFromServer(ServiceApplication|ServiceDatabase|Appli $fileVolume->is_directory = true; $fileVolume->save(); instant_remote_process(["mkdir -p $fileLocation"], $server); - } elseif ($isFile == 'NOK' && $isDir == 'NOK' && ! $fileVolume->is_directory && $isInit && ! $content) { + } elseif ($isFile == 'NOK' && $isDir == 'NOK' && ! $fileVolume->is_directory && $isInit && is_null($content)) { // Does not exists (no dir or file), not flagged as directory, is init, has no content => create directory $fileVolume->content = null; $fileVolume->is_directory = true;