File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 60063
    
  65

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?
 
Similar Threads
How to Check whether the file in the Ftpserver is a directory or not?
Specified file not found
Problem with my FTP client Program: MalformedPatternException
Is FTPClient optimized to reuse open connections?
How to Check whether the file in the Ftpserver is a directory or not?