| 162 | } |
| 163 | |
| 164 | bool Filesystem::isfile(std::filesystem::path path) noexcept |
| 165 | { |
| 166 | std::error_code ec; |
| 167 | // is_regular_file() also checks for existence. |
| 168 | auto r = std::filesystem::is_regular_file(path, ec); |
| 169 | if (ec) |
| 170 | return false; |
| 171 | return r; |
| 172 | } |
| 173 | |
| 174 | bool Filesystem::isdir (std::filesystem::path path) noexcept |
| 175 | { |
no outgoing calls