Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CORE] OV file utils file_size use std file path #28462

Open
wants to merge 40 commits into
base: master
Choose a base branch
from

Conversation

barnasm1
Copy link
Contributor

Details:

  • refactor file_size function to accept ov::util::Path / std::filesystem::path. Be backward compatible with previous version.

Tickets:

@barnasm1 barnasm1 added the category: Core OpenVINO Core (aka ngraph) label Jan 15, 2025
@barnasm1 barnasm1 self-assigned this Jan 15, 2025
@barnasm1 barnasm1 requested review from a team as code owners January 15, 2025 15:26
@github-actions github-actions bot added the category: build OpenVINO cmake script / infra label Jan 15, 2025
@praasz praasz self-assigned this Jan 16, 2025
@praasz praasz added this to the 2025.1 milestone Jan 16, 2025
src/common/util/include/openvino/util/file_path.hpp Outdated Show resolved Hide resolved
src/common/util/include/openvino/util/cpp_version.hpp Outdated Show resolved Hide resolved
@@ -172,26 +161,30 @@ bool directory_exists(const std::string& path);
bool directory_exists(const std::wstring& path);
#endif

inline ov::util::Path cut_android_path(const ov::util::Path& file_name) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is not required can be still internal part of file_size

src/common/util/include/openvino/util/file_util.hpp Outdated Show resolved Hide resolved
src/core/tests/file_util.cpp Show resolved Hide resolved
src/core/tests/file_util.cpp Outdated Show resolved Hide resolved
src/core/tests/file_util.cpp Outdated Show resolved Hide resolved
@mlukasze mlukasze requested a review from t-jankowski January 24, 2025 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: build OpenVINO cmake script / infra category: Core OpenVINO Core (aka ngraph)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants