Fix test error
Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>
This commit is contained in:
parent
e27e55ea01
commit
4ba265a452
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue