subject says it all: I think you just omitted the following code in
ftpclient.java:
instead of:
socket = socketFactory.createSocket(__passiveHost, __passivePort);
if (!FTPReply.isPositivePreliminary(sendCommand(command, arg)))
{
socket.close();
return null;
}
should read:
socket = socketFactory.createSocket(__passiveHost, __passivePort);
if ((_restartOffset > 0) && !restart(_restartOffset))
{ socket.close(); return null; } }
if (!FTPReply.isPositivePreliminary(sendCommand(command, arg)))
{
socket.close();
return null;
}
That is, you just forgot a simple clause (which I adapted from the active mode
code). I tested it (basically) and it works.
hope this helps your excellent project.