From 0f660bdf34f4c04367febffc95bad63ee9016299 Mon Sep 17 00:00:00 2001
From: Hans Nilsson
Date: Mon, 10 Nov 2014 17:14:01 +0100
Subject: 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.
---
lib/ssh/doc/src/ssh_sftp.xml | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
(limited to 'lib/ssh/doc/src')
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.
+
+
+ open_tar(ChannelPid, Path) ->
+ open_tar(ChannelPid, Path, Timeout) -> {ok, Handle} | {error, Reason}
+ Open a tar file on the server to which ChannelPid is connected and return a handle
+
+ ChannelPid = pid()
+ Path = string()
+ Timeout = timeout()
+ Reason = term()
+
+
+ Opens a handle to a tar file on the server, the handle
+ can be used for remote tar manipulation as defined by the
+ erl_tar:init/3 function.
+
+
+
close(ChannelPid, Handle) ->
close(ChannelPid, Handle, Timeout) -> ok | {error, Reason}
--
cgit v1.2.3