Current section

Files

Jump to
ftpasta src ftpasta@internal.erl
Raw

src/ftpasta@internal.erl

-module(ftpasta@internal).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([append/3, append_bin/3, cd/2, close/1, delete/2, formaterror/1, lcd/2, lpwd/1, ls/2, mkdir/2, nlist/2, open/3, pwd/1, recv/3, recv_bin/2, rename/3, rmdir/2, send/3, send_bin/3, user/3]).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 6).
-spec append(gleam@erlang@process:pid_(), binary(), binary()) -> {ok, nil} |
{error, ftpasta@ftp_error:ftp_error()}.
append(Pid, Local_file_name, Remote_file_name) ->
ftpasta_ffi:append(Pid, Local_file_name, Remote_file_name).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 13).
-spec append_bin(gleam@erlang@process:pid_(), bitstring(), binary()) -> {ok,
nil} |
{error, ftpasta@ftp_error:ftp_error()}.
append_bin(Pid, Bin, Remote_file_name) ->
ftpasta_ffi:append_bin(Pid, Bin, Remote_file_name).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 20).
-spec cd(gleam@erlang@process:pid_(), binary()) -> {ok, nil} |
{error, ftpasta@ftp_error:ftp_error()}.
cd(Pid, Dir) ->
ftpasta_ffi:cd(Pid, Dir).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 23).
-spec close(gleam@erlang@process:pid_()) -> nil.
close(Pid) ->
ftpasta_ffi:close(Pid).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 26).
-spec delete(gleam@erlang@process:pid_(), binary()) -> {ok, nil} |
{error, ftpasta@ftp_error:ftp_error()}.
delete(Pid, File) ->
ftpasta_ffi:delete(Pid, File).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 29).
-spec formaterror(ftpasta@ftp_error:ftp_error()) -> binary().
formaterror(Error) ->
ftpasta_ffi:formaterror(Error).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 32).
-spec lcd(gleam@erlang@process:pid_(), binary()) -> {ok, nil} |
{error, ftpasta@ftp_error:ftp_error()}.
lcd(Pid, Dir) ->
ftpasta_ffi:lcd(Pid, Dir).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 35).
-spec lpwd(gleam@erlang@process:pid_()) -> binary().
lpwd(Pid) ->
ftpasta_ffi:lpwd(Pid).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 38).
-spec ls(gleam@erlang@process:pid_(), binary()) -> {ok, binary()} |
{error, ftpasta@ftp_error:ftp_error()}.
ls(Pid, Dir) ->
ftpasta_ffi:ls(Pid, Dir).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 41).
-spec mkdir(gleam@erlang@process:pid_(), binary()) -> {ok, nil} |
{error, ftpasta@ftp_error:ftp_error()}.
mkdir(Pid, Dir) ->
ftpasta_ffi:mkdir(Pid, Dir).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 44).
-spec nlist(gleam@erlang@process:pid_(), binary()) -> {ok, binary()} |
{error, ftpasta@ftp_error:ftp_error()}.
nlist(Pid, Dir) ->
ftpasta_ffi:nlist(Pid, Dir).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 47).
-spec open(binary(), integer(), ftpasta@tls_config:tls_config()) -> {ok,
gleam@erlang@process:pid_()} |
{error, ftpasta@ftp_error:ftp_error()}.
open(Host, Port, Tls) ->
ftpasta_ffi:open(Host, Port, Tls).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 50).
-spec pwd(gleam@erlang@process:pid_()) -> {ok, binary()} |
{error, ftpasta@ftp_error:ftp_error()}.
pwd(Pid) ->
ftpasta_ffi:pwd(Pid).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 53).
-spec recv(gleam@erlang@process:pid_(), binary(), binary()) -> {ok, nil} |
{error, ftpasta@ftp_error:ftp_error()}.
recv(Pid, Remote_file_name, Local_file_name) ->
ftpasta_ffi:recv(Pid, Remote_file_name, Local_file_name).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 60).
-spec recv_bin(gleam@erlang@process:pid_(), binary()) -> {ok, bitstring()} |
{error, ftpasta@ftp_error:ftp_error()}.
recv_bin(Pid, Remote_file_name) ->
ftpasta_ffi:recv_bin(Pid, Remote_file_name).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 66).
-spec rename(gleam@erlang@process:pid_(), binary(), binary()) -> {ok, nil} |
{error, ftpasta@ftp_error:ftp_error()}.
rename(Pid, Old, New) ->
ftpasta_ffi:rename(Pid, Old, New).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 69).
-spec rmdir(gleam@erlang@process:pid_(), binary()) -> {ok, nil} |
{error, ftpasta@ftp_error:ftp_error()}.
rmdir(Pid, Dir) ->
ftpasta_ffi:rmdir(Pid, Dir).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 72).
-spec send(gleam@erlang@process:pid_(), binary(), binary()) -> {ok, nil} |
{error, ftpasta@ftp_error:ftp_error()}.
send(Pid, Local_file_name, Remote_file_name) ->
ftpasta_ffi:send(Pid, Local_file_name, Remote_file_name).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 79).
-spec send_bin(gleam@erlang@process:pid_(), bitstring(), binary()) -> {ok, nil} |
{error, ftpasta@ftp_error:ftp_error()}.
send_bin(Pid, Bin, Remote_file_name) ->
ftpasta_ffi:send_bin(Pid, Bin, Remote_file_name).
-file("/home/richy/Projects/ftpasta/src/ftpasta/internal.gleam", 86).
-spec user(gleam@erlang@process:pid_(), binary(), binary()) -> {ok, nil} |
{error, ftpasta@ftp_error:ftp_error()}.
user(Pid, User, Pass) ->
ftpasta_ffi:user(Pid, User, Pass).