From fd89608b7ae337bc29712c14c90de8d1c82ea667 Mon Sep 17 00:00:00 2001 From: Ingela Anderton Andin Date: Mon, 4 May 2015 12:06:25 +0200 Subject: ssh: Fix missed alphabetic ordering and indentation --- lib/ssh/doc/src/ssh_sftp.xml | 88 ++++++++++++++++++++++---------------------- 1 file changed, 45 insertions(+), 43 deletions(-) (limited to 'lib/ssh/doc') diff --git a/lib/ssh/doc/src/ssh_sftp.xml b/lib/ssh/doc/src/ssh_sftp.xml index b986d38fea..643130fe6b 100644 --- a/lib/ssh/doc/src/ssh_sftp.xml +++ b/lib/ssh/doc/src/ssh_sftp.xml @@ -73,6 +73,24 @@

ssh_sftp:apread/4

+ + apwrite(ChannelPid, Handle, Position, Data) -> ok | {error, Reason} + Writes asynchronously to an open file. + + ChannelPid = pid() + Handle = term() + Position = integer() + Len = integer() + Data = binary() + Timeout = timeout() + Reason = term() + + +

writes on a specified position, combining + the and operations.

+

ssh_sftp:awrite/3

+
+ aread(ChannelPid, Handle, Len) -> {async, N} | {error, Error} Reads asynchronously from an open file. @@ -95,23 +113,7 @@ - - apwrite(ChannelPid, Handle, Position, Data) -> ok | {error, Reason} - Writes asynchronously to an open file. - - ChannelPid = pid() - Handle = term() - Position = integer() - Len = integer() - Data = binary() - Timeout = timeout() - Reason = term() - - -

writes on a specified position, combining - the and operations.

-

ssh_sftp:awrite/3

-
+ awrite(ChannelPid, Handle, Data) -> ok | {error, Reason} @@ -584,25 +586,6 @@ - - write_file(ChannelPid, File, Iolist) -> - write_file(ChannelPid, File, Iolist, Timeout) -> ok | {error, Reason} - Writes a file. - - ChannelPid = pid() - File = string() - Iolist = iolist() - Timeout = timeout() - Reason = term() - - -

Writes a file to the server, like file:write_file/2 The - file is created if it does not exist. The file is overwritten - if it exists.

-
-
- write(ChannelPid, Handle, Data) -> write(ChannelPid, Handle, Data, Timeout) -> ok | {error, Error} @@ -617,9 +600,9 @@

Writes to the file referenced by . - The file is to be opened with or - flag. Returns if successful or - otherwise.

+ The file is to be opened with or + flag. Returns if successful or + otherwise.

Typical error reasons:

@@ -633,7 +616,26 @@
- + + + write_file(ChannelPid, File, Iolist) -> + write_file(ChannelPid, File, Iolist, Timeout) -> ok | {error, Reason} + Writes a file. + + ChannelPid = pid() + File = string() + Iolist = iolist() + Timeout = timeout() + Reason = term() + + +

Writes a file to the server, like file:write_file/2 The + file is created if it does not exist. The file is overwritten + if it exists.

+
+
+ write_file_info(ChannelPid, Name, Info) -> write_file_info(ChannelPid, Name, Info, Timeout) -> ok | {error, Reason} @@ -647,11 +649,11 @@

Writes file information from a record to the - file specified by , like - file:write_file_info/[2,3]

+ file specified by , like + file:write_file_info/[2,3]

- + -- cgit v1.2.3