I need to see the list of subdirectories inside the current directory using the apache.commons.net.ftp. Please let me know how I can do it.Remember that I just need the directories and not the files.
FTP has no provisions for listing just the directories, but since the FTPFiles class has methods isFile and isDirectory, I'm not sure what exactly the problem is?
I was trying to use this for some archiving purpose, where by I will see if there is a folder corresponding to todays date and if it is not there I will create one. If it is there I will archive to that folder.
The only taste of success some people get is to take a bite out of you. Or this tiny ad:
a bit of art, as a gift, that will fit in a stocking