We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c944bf commit 2935a38Copy full SHA for 2935a38
1 file changed
backend/source/backend/rpc_filesystem.cpp
@@ -290,7 +290,8 @@ void RpcFilesystem::registerCreateDirectory()
290
const auto directoryPath = parameters["path"].get<std::string>();
291
292
std::error_code ec;
293
- if (!std::filesystem::create_directory(directoryPath, ec))
+ std::filesystem::create_directory(directoryPath, ec);
294
+ if (ec)
295
{
296
Log::error("Failed to create directory '{}': {}", directoryPath, ec.message());
297
return reply.error(ec.message());
0 commit comments