diff --git a/src/common/util/src/file_util.cpp b/src/common/util/src/file_util.cpp index a9c20911037..beec62ef729 100644 --- a/src/common/util/src/file_util.cpp +++ b/src/common/util/src/file_util.cpp @@ -697,7 +697,7 @@ bool ov::util::is_symlink_or_hardlink(const std::string& path) { if (path.empty()) return false; fs::path p = fs::path(path); - return fs::is_symlink(p) || (fs::hard_link_count(p) > 1); + return fs::hard_link_count(p) > 1; } # ifdef OPENVINO_ENABLE_UNICODE_PATH_SUPPORT @@ -705,7 +705,7 @@ bool ov::util::is_symlink_or_hardlink(const std::wstring& path) { if (path.empty()) return false; fs::path p = fs::path(path); - return fs::is_symlink(p) || (fs::hard_link_count(p) > 1); + return (fs::hard_link_count(p) > 1); } # endif #endif