MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / MatchPath

Method MatchPath

tensorflow/core/platform/windows/env.cc:92–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 }
91
92 bool MatchPath(const string& path, const string& pattern) override {
93 std::wstring ws_path(Utf8ToWideChar(path));
94 std::wstring ws_pattern(Utf8ToWideChar(pattern));
95 return PathMatchSpecW(ws_path.c_str(), ws_pattern.c_str()) == TRUE;
96 }
97
98 void SleepForMicroseconds(int64 micros) override { Sleep(micros / 1000); }
99

Callers

nothing calls this directly

Calls 2

Utf8ToWideCharFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected