You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@doc """
Reads a file from the server, and returns the data as String.
"""
@spec write_file(Conn.t(), Path.t(), String.t() | [String.t()]) ::
:ok | {:error, SFTPClient.error()}
def write_file(%Conn{} = conn, path, data) when is_binary(data) do
write_file(conn, path, [data])
end
returns a string according to @doc
returns :ok or {:error, _} according to @spec
data is_binary according to implementation
data can be String.t or [String.t] according to @spec
The text was updated successfully, but these errors were encountered:
Hello, thanks for creating this issue! The docs are wrong. Seems to be a copy-and-paste error (these are the docs for one of the read_file functions). I'm going to fix this asap. :)
@doc
:ok
or{:error, _}
according to@spec
data
is_binary according to implementationdata
can be String.t or [String.t] according to@spec
The text was updated successfully, but these errors were encountered: