Skip to content

Tag: apache-commons-net

How to get info of an FTPFile

I am using ApacheCommons to connect to a server and get information of a specific file. I am looking for a method like FTPFile file = ftpclient.getFile(path); or something like this, so I can give it the path of the file and then be able to get info about that file. By info I mean file.getName() or file.lendt…

commons-net is compatible with ssh-2.0 protocol

i have tried create a project with library commons.net for send via ftp some files. But i created a connection with my server i have received this error. i have followed this article for create my connection, and with official examples i’ve controlled article. my java code here: I do not understand wher…