|
libsshpp v0.1.7
Modern C++17 wrapper for libssh
|
The SFTP subsystem session. See docs/design/06 §6.2. More...
#include <sftp.hpp>
Public Member Functions | |
| Sftp ()=default | |
| Sftp (Session &session) | |
| ~Sftp () | |
| Sftp (Sftp &&) noexcept | |
| Sftp & | operator= (Sftp &&) noexcept |
| Sftp (const Sftp &)=delete | |
| Result< void > | try_init () |
| operator bool () const noexcept | |
| native_sftp | native_handle () const noexcept |
| int | protocol_version () const noexcept |
| Result< Limits > | try_limits () const |
| Result< File > | try_open (const RemotePath &, OpenMode, std::filesystem::perms create_perms=std::filesystem::perms::owner_read|std::filesystem::perms::owner_write) |
| Result< Attributes > | try_stat (const RemotePath &) const |
| Result< Attributes > | try_lstat (const RemotePath &) const |
| Result< bool > | try_exists (const RemotePath &) const |
| Result< void > | try_chmod (const RemotePath &, std::filesystem::perms) |
| Result< void > | try_chown (const RemotePath &, std::uint32_t uid, std::uint32_t gid) |
| Result< void > | try_mkdir (const RemotePath &, std::filesystem::perms=std::filesystem::perms::owner_all) |
| Result< void > | try_mkdir_p (const RemotePath &, std::filesystem::perms=std::filesystem::perms::owner_all) |
| Result< void > | try_rmdir (const RemotePath &) |
| Result< void > | try_remove (const RemotePath &) |
| Result< void > | try_rename (const RemotePath &from, const RemotePath &to) |
| Result< void > | try_symlink (const RemotePath &target, const RemotePath &link) |
| Result< RemotePath > | try_readlink (const RemotePath &) const |
| Result< RemotePath > | try_canonicalize (const RemotePath &) const |
| Result< Directory > | try_open_directory (const RemotePath &) const |
| Result< std::vector< Attributes > > | try_list (const RemotePath &) const |
The SFTP subsystem session. See docs/design/06 §6.2.
|
default |
|
explicit |
| SSHPP_INLINE sshpp::sftp::Sftp::~Sftp | ( | ) |
|
noexcept |
|
delete |
| SSHPP_INLINE Result< void > sshpp::sftp::Sftp::try_init | ( | ) |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
noexcept |
| SSHPP_INLINE Result< File > sshpp::sftp::Sftp::try_open | ( | const RemotePath & | path, |
| OpenMode | mode, | ||
| std::filesystem::perms | create_perms = std::filesystem::perms::owner_read | std::filesystem::perms::owner_write |
||
| ) |
| SSHPP_INLINE Result< Attributes > sshpp::sftp::Sftp::try_stat | ( | const RemotePath & | path | ) | const |
| SSHPP_INLINE Result< Attributes > sshpp::sftp::Sftp::try_lstat | ( | const RemotePath & | path | ) | const |
| SSHPP_INLINE Result< bool > sshpp::sftp::Sftp::try_exists | ( | const RemotePath & | path | ) | const |
| SSHPP_INLINE Result< void > sshpp::sftp::Sftp::try_chmod | ( | const RemotePath & | path, |
| std::filesystem::perms | perms | ||
| ) |
| SSHPP_INLINE Result< void > sshpp::sftp::Sftp::try_chown | ( | const RemotePath & | path, |
| std::uint32_t | uid, | ||
| std::uint32_t | gid | ||
| ) |
| SSHPP_INLINE Result< void > sshpp::sftp::Sftp::try_mkdir | ( | const RemotePath & | path, |
| std::filesystem::perms | perms = std::filesystem::perms::owner_all |
||
| ) |
| SSHPP_INLINE Result< void > sshpp::sftp::Sftp::try_mkdir_p | ( | const RemotePath & | path, |
| std::filesystem::perms | perms = std::filesystem::perms::owner_all |
||
| ) |
| SSHPP_INLINE Result< void > sshpp::sftp::Sftp::try_rmdir | ( | const RemotePath & | path | ) |
| SSHPP_INLINE Result< void > sshpp::sftp::Sftp::try_remove | ( | const RemotePath & | path | ) |
| SSHPP_INLINE Result< void > sshpp::sftp::Sftp::try_rename | ( | const RemotePath & | from, |
| const RemotePath & | to | ||
| ) |
| SSHPP_INLINE Result< void > sshpp::sftp::Sftp::try_symlink | ( | const RemotePath & | target, |
| const RemotePath & | link | ||
| ) |
| SSHPP_INLINE Result< RemotePath > sshpp::sftp::Sftp::try_readlink | ( | const RemotePath & | path | ) | const |
| SSHPP_INLINE Result< RemotePath > sshpp::sftp::Sftp::try_canonicalize | ( | const RemotePath & | path | ) | const |
| SSHPP_INLINE Result< Directory > sshpp::sftp::Sftp::try_open_directory | ( | const RemotePath & | path | ) | const |
| SSHPP_INLINE Result< std::vector< Attributes > > sshpp::sftp::Sftp::try_list | ( | const RemotePath & | path | ) | const |