mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-14 11:58:02 +00:00
fix(save): don't create dirs for cloud dir (#4259)
This commit is contained in:
parent
071e299971
commit
ad73e18f6d
1 changed files with 1 additions and 1 deletions
|
@ -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"};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue