MCPcopy Create free account
hub / github.com/comaps/comaps / GetFileTypeChecked

Function GetFileTypeChecked

libs/platform/platform.cpp:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41bool GetFileTypeChecked(std::string const & path, Platform::EFileType & type)
42{
43 Platform::EError const ret = Platform::GetFileType(path, type);
44 if (ret != Platform::ERR_OK)
45 {
46 LOG(LERROR, ("Can't determine file type for", path, ":", ret));
47 return false;
48 }
49 return true;
50}
51} // namespace
52
53// static

Callers 1

MkDirCheckedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected