refactor: do not trigger debug break when mkdir fails with EEXIST

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2023-11-02 10:01:18 +00:00
committed by Compute-Runtime-Automation
parent aa85d71adc
commit 4a5d9eeae7

View File

@@ -43,6 +43,6 @@ std::vector<std::string> getFiles(const std::string &path) {
void createDirectory(const std::string &path) {
[[maybe_unused]] auto status = _mkdir(path.c_str());
DEBUG_BREAK_IF(status != 0);
DEBUG_BREAK_IF(status != 0 && errno != EEXIST);
}
}; // namespace NEO::Directory