diff --git a/include/spdlog/details/file_helper-inl.h b/include/spdlog/details/file_helper-inl.h index e7161132..eabc9aaa 100644 --- a/include/spdlog/details/file_helper-inl.h +++ b/include/spdlog/details/file_helper-inl.h @@ -36,7 +36,7 @@ SPDLOG_INLINE void file_helper::open(const filename_t &fname, bool truncate) { if (!folder_name.empty()) { - os::create_dir(folder_name); + os::create_dir(folder_name); // will not created if already exists } if (!os::fopen_s(&fd_, fname, mode))