| 39 | } |
| 40 | |
| 41 | bool 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 |