Commit Graph

117 Commits

Author SHA1 Message Date
Julien Laffaye
ebf946ada5 Switch to binary mode once logged-in.
Data transfer in binary mode works for both ASCII and binary (such as JPEG
images) files. Therefore it should be the default.

Fixes #3
2013-05-08 17:46:48 +02:00
Julien Laffaye
3a7f65cd20 Update copyright years. 2013-02-17 10:34:01 +01:00
Julien Laffaye
1b12f17f86 Makefile is deprecated. 2013-02-17 10:33:24 +01:00
Julien Laffaye
acaf7edcbc gofmt 2013-02-17 10:31:56 +01:00
Julien Laffaye
872a244347 More status code texts. 2013-02-17 10:29:16 +01:00
Julien Laffaye
d69e9326f4 Set the size of the entry in List() 2013-02-17 10:03:46 +01:00
jlaffaye
47b339b57b Update to latest Go weekly. 2011-12-27 22:50:50 +01:00
jlaffaye
6110501482 Added CurrentDir() and ChangeDirToParent()
Added more tests.
2011-09-07 16:52:52 +02:00
jlaffaye
68f080c45f Returns a textproto.Error
It easier for the client to extract the code and message with type assertions.
2011-09-06 19:15:39 +02:00
jlaffaye
af6f5aac6a Add helpers functions to cleanup code. 2011-09-06 19:12:22 +02:00
jlaffaye
6aaa275d08 Login() is a function on its own.
It allows to try multiple logins without closing the connection.
Drop the useless ConnectAnonymous.
2011-09-06 18:27:30 +02:00
jlaffaye
b70c76ed28 More commands and their tests.
Delete()
MakeDir()
RemoveDir()
2011-09-06 00:02:01 +02:00
jlaffaye
a87255661d Better error handling, new commands.
The code is no safer.
Added Stor(), Rename(), NoOp()
Improved Retr()
Added client tests (requires a ftp server on localhost)
2011-09-05 23:36:14 +02:00
jlaffaye
faca79d4ea List() takes an argument. 2011-05-08 13:08:31 +01:00
jlaffaye
7b2259fd5d Use net/textproto instead of net. 2011-05-07 12:56:42 +01:00
jlaffaye
3b5a440874 Rename ServerCon' to ServerConn' to be consistent with core packages. 2011-05-07 12:13:51 +01:00
jlaffaye
bcc332e95c First commit. 2011-05-07 00:29:10 +01:00