MCPcopy Create free account
hub / github.com/boostorg/filesystem / process_status_failure

Function process_status_failure

src/operations.cpp:1659–1677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1657}
1658
1659inline 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
1679inline fs::file_status process_status_failure(path const& p, error_code* ec)
1680{

Callers 3

status_by_handleFunction · 0.85
symlink_status_implFunction · 0.85
status_implFunction · 0.85

Calls 3

not_found_errorFunction · 0.85
file_statusClass · 0.85
assignMethod · 0.45

Tested by

no test coverage detected