diff options
author | Hans Nilsson <[email protected]> | 2014-11-10 17:14:01 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2014-11-18 14:48:16 +0100 |
commit | 0f660bdf34f4c04367febffc95bad63ee9016299 (patch) | |
tree | c4352f4831735113965b772939f840022b6265c3 /lib/ssh/doc | |
parent | b2171f6bf65c5897d37103afec102fa565bc134e (diff) | |
download | otp-0f660bdf34f4c04367febffc95bad63ee9016299.tar.gz otp-0f660bdf34f4c04367febffc95bad63ee9016299.tar.bz2 otp-0f660bdf34f4c04367febffc95bad63ee9016299.zip |
ssh: Add ssh_sftp:open_tar/3,4 which opens a tar file at the server side of a channel.
Depends on erl_tar.erl having the function erl_tar:init/3 defined.
Diffstat (limited to 'lib/ssh/doc')
-rw-r--r-- | lib/ssh/doc/src/ssh_sftp.xml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/ssh/doc/src/ssh_sftp.xml b/lib/ssh/doc/src/ssh_sftp.xml index f1091e9eca..251f5a4be3 100644 --- a/lib/ssh/doc/src/ssh_sftp.xml +++ b/lib/ssh/doc/src/ssh_sftp.xml @@ -194,6 +194,24 @@ can be used for reading directory contents.</p> </desc> </func> + + <func> + <name>open_tar(ChannelPid, Path) -></name> + <name>open_tar(ChannelPid, Path, Timeout) -> {ok, Handle} | {error, Reason}</name> + <fsummary>Open a tar file on the server to which <v>ChannelPid</v> is connected and return a handle</fsummary> + <type> + <v>ChannelPid = pid()</v> + <v>Path = string()</v> + <v>Timeout = timeout()</v> + <v>Reason = term()</v> + </type> + <desc> + <p>Opens a handle to a tar file on the server, the handle + can be used for remote tar manipulation as defined by the + <seealso marker="stdlib:erl_tar#init/3">erl_tar:init/3</seealso> function.</p> + </desc> + </func> + <func> <name>close(ChannelPid, Handle) -> </name> <name>close(ChannelPid, Handle, Timeout) -> ok | {error, Reason}</name> |