| return; | return; | ||||
| } | } | ||||
| if (ec != std::errc::cross_device_link) { | |||||
| if (ec != std::errc::cross_device_link && ec != std::errc::permission_denied) { | |||||
| throw std::system_error(ec, | throw std::system_error(ec, | ||||
| fmt::format("Failed to move item [{}] to [{}]", | fmt::format("Failed to move item [{}] to [{}]", | ||||
| source.string(), | source.string(), |