I have got a remote directory called ftpPath,Is there someway I can know is it a file or directory directly through ftpPath,create a FTPFile object?
Thanks a lot !
Thanks for your answer.But I just don't know if it is a file or a directory on the remote server.
what I can only get is a path, like a method like this boolean fileOrDirectroy(String ftppath), true for file, false for directory Any suggestion will be highly appreciated
The best approach is to use dirDetails() on the directory the file (or dir) is in, search through the FTPFile objects that are returned until you match the name, and see if it is a directory.