libsshpp v0.1.7
Modern C++17 wrapper for libssh
Loading...
Searching...
No Matches
algorithms.hpp File Reference
#include <sshpp/config.hpp>
#include <sshpp/export.hpp>
#include <sshpp/result.hpp>
#include <sshpp/sftp/sftp.hpp>
#include <sshpp/types.hpp>
#include <cstdint>
#include <filesystem>
#include <functional>
#include <optional>
#include <string>
Include dependency graph for algorithms.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sshpp::sftp::Progress
 
struct  sshpp::sftp::TransferOptions
 
struct  sshpp::sftp::TreeStats
 

Namespaces

namespace  sshpp
 
namespace  sshpp::sftp
 

Typedefs

using sshpp::sftp::ProgressCallback = std::function< bool(const Progress &)>
 Return false to abort the transfer (yields errc::cancelled).
 

Enumerations

enum class  sshpp::sftp::Overwrite { sshpp::sftp::fail , sshpp::sftp::replace }
 

Functions

SSHPP_INLINE Result< std::uint64_t > sshpp::sftp::try_download (Sftp &sftp, const RemotePath &remote, const std::filesystem::path &local, TransferOptions opts)
 
SSHPP_INLINE Result< std::uint64_t > sshpp::sftp::try_upload (Sftp &sftp, const std::filesystem::path &local, const RemotePath &remote, TransferOptions opts)
 
SSHPP_INLINE Result< std::string > sshpp::sftp::try_read_file (Sftp &sftp, const RemotePath &path, std::size_t limit)
 
SSHPP_INLINE Result< void > sshpp::sftp::try_write_file (Sftp &sftp, const RemotePath &path, ByteView data, std::filesystem::perms perms)
 
SSHPP_INLINE Result< TreeStatssshpp::sftp::try_download_tree (Sftp &sftp, const RemotePath &remote, const std::filesystem::path &local, TransferOptions opts)