1
0
Fork 0
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:
Andy Dunstall 2024-12-05 08:39:47 +00:00 committed by GitHub
parent 071e299971
commit ad73e18f6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"};
}