| 816 | * guarantee; this check is a best-effort early skip on top of it. */ |
| 817 | #ifdef _WIN32 |
| 818 | static bool pkgmap_is_reparse_point(const char *abs_path) { |
| 819 | wchar_t *wpath = cbm_utf8_to_wide(abs_path); |
| 820 | if (!wpath) { |
| 821 | return false; |
| 822 | } |
| 823 | DWORD attrs = GetFileAttributesW(wpath); |
| 824 | free(wpath); |
| 825 | if (attrs == INVALID_FILE_ATTRIBUTES) { |
| 826 | return false; |
| 827 | } |
| 828 | return (attrs & FILE_ATTRIBUTE_REPARSE_POINT) != 0; |
| 829 | } |
| 830 | #endif |
| 831 | |
| 832 | /* Recursive filesystem walker that finds and parses package manifest |
no test coverage detected