- boost::uintmax_t to_do = boost::filesystem::file_size (from);
- ssh_scp_push_file (_scp, to.string().c_str(), to_do, S_IRUSR | S_IWUSR);
+ auto to_do = boost::filesystem::file_size (from);
+ /* Use generic_string so that we get forward-slashes in the path, even on Windows */
+ ssh_scp_push_file (_scp, to.generic_string().c_str(), to_do, S_IRUSR | S_IWUSR);