From ad73e18f6d95b584e4c0b9bf057bfd8777d4d446 Mon Sep 17 00:00:00 2001 From: Andy Dunstall Date: Thu, 5 Dec 2024 08:39:47 +0000 Subject: [PATCH] fix(save): don't create dirs for cloud dir (#4259) --- src/server/detail/save_stages_controller.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/detail/save_stages_controller.cc b/src/server/detail/save_stages_controller.cc index c03ff0807..6aa43db8c 100644 --- a/src/server/detail/save_stages_controller.cc +++ b/src/server/detail/save_stages_controller.cc @@ -379,7 +379,7 @@ GenericError SaveStagesController::FinalizeFileMovement() { // Build full path: get dir, try creating dirs, get filename with placeholder GenericError SaveStagesController::BuildFullPath() { fs::path dir_path = GetFlag(FLAGS_dir); - if (!dir_path.empty()) { + if (!dir_path.empty() && !IsCloudPath(GetFlag(FLAGS_dir))) { if (auto ec = CreateDirs(dir_path); ec) return {ec, "Failed to create directories"}; }