From 51cf7e4863aff8bbf46904a0c236229f1525dd68 Mon Sep 17 00:00:00 2001 From: wujianlin Date: Thu, 26 Dec 2024 17:30:58 +0800 Subject: [PATCH] Debug logs are added to the ForceCreateDirectory interface Issue:https://gitee.com/openharmony/commonlibrary_c_utils/issues/IBDZHJ?from=project-issue Signed-off-by: wujianlin --- base/src/directory_ex.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/base/src/directory_ex.cpp b/base/src/directory_ex.cpp index bac6356..1b91237 100644 --- a/base/src/directory_ex.cpp +++ b/base/src/directory_ex.cpp @@ -217,6 +217,7 @@ bool ForceCreateDirectory(const string& path) if (access(subPath.c_str(), F_OK) != 0) { if (mkdir(subPath.c_str(), (S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)) != 0 && errno != EEXIST) { + UTILS_LOGE("Failed to create subPath: %{public}s: %{public}s ", subPath.c_str(), strerror(errno)); return false; } } -- Gitee