Only 25 directory changes in one FTP session?

Hi

I'm writing a small application that scans

directories on a ftp server.

However after 25 changeWorkingDirectory(directory)

or listFiles(directory)

the scanning thread just freezes.

If I do a

connecting -> login -> changeDirectory -> listFiles() ->disconnect

reconnecting -> login -> changeDirectory -> listFiles() -> disconnect

etc.

...

it works, even for more than 25 directories (I stopped after 100)

Of course it's much slower.

Does anybody know whether this is an api issue (I Use

Jakarta's Common-Net) or a ftp server problem?

Do I have to change the API?

Can I configure the FTP-Client to allow more than 25 changes?

Or is it the server blocking after 25 changes?

thx in advance

Oli4

[818 byte] By [oli_004a] at [2007-11-27 11:18:40]
# 1

I'd consider it very rude to use software to automatically browse my entire ftp server and do stuff.

Many server owners think the same way.

Therefore I'd be less than surprised if many ftp servers have options preventing such behaviour, closing connections that appear to be bots rather than people, especially bots that appear to not have any valid business there (like uploading or downloading very specific files in places they know how to find).

jwentinga at 2007-7-29 14:32:22 > top of Java-index,Core,Core APIs...