Skip to content

Commit

Permalink
fix path creation
Browse files Browse the repository at this point in the history
  • Loading branch information
haiqi96 committed Jun 21, 2024
1 parent 4b1e541 commit ade711e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/core/src/clp/clo/clo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ bool extract_ir(CommandLineArguments const& command_line_args) {
try {
// Create output directory in case it doesn't exist
std::filesystem::path const output_dir{command_line_args.get_ir_output_dir()};
if (auto const error_code = create_directory(output_dir.parent_path().string(), 0700, true);
if (auto const error_code = create_directory(output_dir.string(), 0700, true);
ErrorCode_Success != error_code)
{
SPDLOG_ERROR(
"Failed to create {} - {}",
output_dir.parent_path().string(),
output_dir.string(),
strerror(errno)
);
return false;
Expand Down

0 comments on commit ade711e

Please sign in to comment.