Skip to content

Commit

Permalink
Update file_utils.cpp (#5783)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvoron authored May 25, 2021
1 parent 25a463f commit 7d429e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions inference-engine/src/inference_engine/file_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ long long FileUtils::fileSize(const char* charfilepath) {
#if defined(ENABLE_UNICODE_PATH_SUPPORT) && defined(_WIN32)
std::wstring widefilename = FileUtils::multiByteCharToWString(charfilepath);
const wchar_t* fileName = widefilename.c_str();
#elif defined(__ANDROID__) || defined(ANDROID)
std::string fileName = charfilepath;
std::string::size_type pos = fileName.find('!');
if (pos != std::string::npos) {
fileName = fileName.substr(0, pos);
}
#else
const char* fileName = charfilepath;
#endif
Expand Down

0 comments on commit 7d429e2

Please sign in to comment.