Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Check whether the file in the Ftpserver is a directory or not?

 
yathish Gatty
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to Ftp the server using the Ftpclient library.But I am not able to check whether the files in ftp server are directory or not. I am using Ameobacode for the Ftpclient library. I am able to get names of the files,but fail to detect whether it is a directory or not.
Please suggest me a method.

Thank you
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which "FtpLibrary" are you talking about and how does it relate to "Ant, Maven and Other Build Tools"?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the 'Other projects' forum.
 
Sloan Bowman
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should check out the jakarta apache project called Commons. You specifically need to check out the NET package and utilize the ftp package in this library. It is very simple to use and should accomplish what you are looking for.

URL: Jakarta Commons NET
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic