[erlang-questions] ftp lib behaviour has changed between ftp-1.0.1 and ftp-1.0.2
Robert Raschke
rtrlists@REDACTED
Mon Jul 8 18:10:55 CEST 2019
Hi,
I have code that matches on {ok, Result} and {error, Reason} tuples coming
from calls to ftp:ls/2 and ftp:recv_bin/2 (on 21.1, ftp-1.0.1) and
upgrading to 21.3 (ftp-1.0.2) sometimes returns a simple ok on those calls.
This is surprising.
15> f().
ok
16> {ok, FTP} = ftp:open("somesite"), ok = ftp:user(FTP, "someuser",
"somepwd"), timer:sleep(100), R = ftp:ls(FTP, "/somefolder/*"),
ftp:close(FTP), R.
{ok,"-rw-r--r-- 1 2001 2001 174993 Jul 8 17:16 ..."}
17> f().
ok
18> {ok, FTP} = ftp:open("somesite"), ok = ftp:user(FTP, "someuser",
"somepwd"), timer:sleep(100), R = ftp:ls(FTP, "/somefolder/*"),
ftp:close(FTP), R.
ok
19>
What might be the reason for this? And is this expected?
Cheers,
Robby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190708/78c26505/attachment.htm>
More information about the erlang-questions
mailing list