This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes How to Check whether the file in the Ftpserver is a directory or not? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How to Check whether the file in the Ftpserver is a directory or not?" Watch "How to Check whether the file in the Ftpserver is a directory or not?" New topic
Author

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

yathish Gatty
Ranch Hand

Joined: Oct 05, 2004
Posts: 31
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
Which "FtpLibrary" are you talking about and how does it relate to "Ant, Maven and Other Build Tools"?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61106
    
  66

Moving to the 'Other projects' forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sloan Bowman
Ranch Hand

Joined: Jan 21, 2003
Posts: 107
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Check whether the file in the Ftpserver is a directory or not?