Skip to content

Commit 2935a38

Browse files
committed
Fixed create directory success error.
1 parent 8c944bf commit 2935a38

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

backend/source/backend/rpc_filesystem.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ void RpcFilesystem::registerCreateDirectory()
290290
const auto directoryPath = parameters["path"].get<std::string>();
291291

292292
std::error_code ec;
293-
if (!std::filesystem::create_directory(directoryPath, ec))
293+
std::filesystem::create_directory(directoryPath, ec);
294+
if (ec)
294295
{
295296
Log::error("Failed to create directory '{}': {}", directoryPath, ec.message());
296297
return reply.error(ec.message());

0 commit comments

Comments
 (0)