We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b47c607 commit a84ae96Copy full SHA for a84ae96
src/common/util/include/openvino/util/file_util.hpp
@@ -239,7 +239,11 @@ inline std::string from_file_path(const ov::util::Path& path) {
239
240
// TODO: remove this function after all calls use Path
241
inline FilePath to_file_path(const ov::util::Path& path) {
242
+#if defined(_WIN32) && defined(OPENVINO_ENABLE_UNICODE_PATH_SUPPORT)
243
+ return ov::util::string_to_wstring(path.string());
244
+#else
245
return path.native();
246
+#endif
247
}
248
249
#ifdef OPENVINO_ENABLE_UNICODE_PATH_SUPPORT
0 commit comments