| 1657 | } |
| 1658 | |
| 1659 | inline fs::file_status process_status_failure(DWORD errval, path const& p, error_code* ec) |
| 1660 | { |
| 1661 | if (ec) // always report errval, even though some |
| 1662 | ec->assign(errval, system_category()); // errval values are not status_errors |
| 1663 | |
| 1664 | if (not_found_error(errval)) |
| 1665 | { |
| 1666 | return fs::file_status(fs::file_not_found, fs::no_perms); |
| 1667 | } |
| 1668 | else if (errval == ERROR_SHARING_VIOLATION) |
| 1669 | { |
| 1670 | return fs::file_status(fs::type_unknown); |
| 1671 | } |
| 1672 | |
| 1673 | if (!ec) |
| 1674 | BOOST_FILESYSTEM_THROW(filesystem_error("boost::filesystem::status", p, error_code(errval, system_category()))); |
| 1675 | |
| 1676 | return fs::file_status(fs::status_error); |
| 1677 | } |
| 1678 | |
| 1679 | inline fs::file_status process_status_failure(path const& p, error_code* ec) |
| 1680 | { |
no test coverage detected