| 243 | } |
| 244 | |
| 245 | bool CMP_IsHidden(const std::string& fullPath) |
| 246 | { |
| 247 | #ifdef _WIN32 |
| 248 | bool IsHidden = false; |
| 249 | DWORD Result = GetFileAttributesA(fullPath.c_str()); |
| 250 | if (Result != 0xFFFFFFFF) |
| 251 | { |
| 252 | IsHidden = !!(Result & FILE_ATTRIBUTE_HIDDEN); |
| 253 | } |
| 254 | |
| 255 | return IsHidden; |
| 256 | #else |
| 257 | #if defined _CMP_CPP17_ || defined _CMP_CPP14_ |
| 258 | sfs::path path(fullPath); |
| 259 | if (path.filename().string().find(".") == 0) |
| 260 | return true; |
| 261 | #else |
| 262 | return false; |
| 263 | #endif |
| 264 | #endif |
| 265 | } |
| 266 | |
| 267 | std::string CMP_GetFullPath(std::string file) |
| 268 | { |
no test coverage detected