Skip to content

Commit

Permalink
fix(save): don't create dirs for cloud dir (#4259)
Browse files Browse the repository at this point in the history
  • Loading branch information
andydunstall authored Dec 5, 2024
1 parent 071e299 commit ad73e18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/detail/save_stages_controller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"};
}
Expand Down

0 comments on commit ad73e18

Please sign in to comment.