| 105 | } |
| 106 | |
| 107 | bool StdExplorer::IsFile(const std::string &path) { |
| 108 | const auto full_path = this->MakeFull(path); |
| 109 | |
| 110 | struct stat st; |
| 111 | return (stat(full_path.c_str(), &st) == 0) && (st.st_mode & S_IFREG); |
| 112 | } |
| 113 | |
| 114 | bool StdExplorer::IsDirectory(const std::string &path) { |
| 115 | const auto full_path = this->MakeFull(path); |
no test coverage detected