fix
Some checks failed
BlockStorage/repertory/pipeline/head There was a failure building this commit

This commit is contained in:
2024-08-23 18:21:13 -05:00
parent bb6b90021f
commit 059c57f1de

View File

@ -135,11 +135,11 @@ public:
if (not utils::file::file(to_file_path).remove()) {
return -1;
}
} else if (utils::file::directory(to_file_path).exists()) ||
} else if (utils::file::directory(to_file_path).exists() ||
utils::file::file(to_file_path).exists()) {
errno = EEXIST;
return -1;
}
errno = EEXIST;
return -1;
}
return rename(from_file_path.c_str(), to_file_path.c_str());
}